Skip to content

[TRI-1882] Python support #862

Closed
Closed

Description

@matt-aitken

It would be great to offer support for Python.

Python has better support for many Machine Learning uses cases:

  • Many ML libraries are only Python, or more complete in Python
  • Some services have ML models that only work from Python (e.g. OpenAI's whisper model)
  • Data Science and Engineering tools like pandas

It would be even better if you could mix languages. Have files alongside each other that are different languages but can declare tasks.

TRI-1882

Activity

  1. changed the title [-]Python support[/-] [+][TRI-1882] Python support[/+] on Jan 20, 2024
  2. matt-aitken commented on Jan 20, 2024

    @matt-aitken
    MemberAuthor

    Cloudflare Workers transpiles languages into JavaScript.

  3. listenaddress commented on Feb 28, 2024

    @listenaddress

    Hey Matt, I'd love to use trigger.dev with Python! Any idea when this might happen?

  4. wesleymatosdev commented on Jul 12, 2024

    @wesleymatosdev
    Contributor

    Having this would be great! I want to do a job to run https://github.com/joshiayush/inb automatically and trigger.dev would be a great option if it offers support for Python.

  5. MaleicAcid commented on Sep 19, 2024

    @MaleicAcid

    +1 really need this.

  6. montaign commented on Oct 1, 2024

    @montaign

    pls advise on timeline

  7. LeEricCH commented on Oct 1, 2024

    @LeEricCH

    +1 would really enjoy that!

  8. chanmathew commented on Oct 3, 2024

    @chanmathew

    +1! Big use case for this is running python based crawlers and other AI inference tasks.

  9. tgirotto commented on Oct 3, 2024

    @tgirotto

    +1 it would be a great use case for gis applications as well :)

  10. nullmastermind commented on Oct 8, 2024

    @nullmastermind

    +1

  11. archodev commented on Oct 8, 2024

    @archodev

    +1

  12. saschaseniuk commented on Oct 9, 2024

    @saschaseniuk

    https://feedback.trigger.dev/p/python-support-2

    You can upvote for python support to make it happen 😍

  13. BaileySimrell commented on Dec 11, 2024

    @BaileySimrell

    +1 this would be awesome .. just upvoted!

  14. peter-hanzo commented on Dec 19, 2024

    @peter-hanzo

    Here is the list that I want to use in my project. Many of these libraries I find very useful in any project:


    Asynchronous and HTTP Requests

    • aiohttp: Asynchronous HTTP client and server for Python.
    • async-timeout: Manage timeouts in asynchronous operations.
    • httpx: Asynchronous HTTP requests, an alternative to aiohttp.
    • websocket-client: For implementing WebSocket connections.

    Data Processing

    • pandas: Data analysis and manipulation (e.g., checklists, tasks, statuses).
    • numpy: Mathematical computations.
    • sqlalchemy: ORM for database operations and queries.
    • pydantic: Data validation.
    • pydantic_core: Core utilities for Pydantic.
    • jsonschema: JSON structure validation.
    • jsonschema_specifications: Specifications for JSON schema validation.
    • pyyaml: Work with YAML for configurations and templates.
    • pytz: Handle time zones.
    • python-dateutil: Work with dates and time-related calculations.
    • s3fs: Work with AWS S3 file systems.
    • smart_open: Work with cloud-based files.

    Text and Query Handling

    • spaCy: NLP library for parsing queries, extracting keywords, and entities.
    • nltk: Natural Language Processing (e.g., syntax analysis and tokenization).
    • textblob: Simple tool for text analysis.
    • regex: Regular expressions for advanced text parsing.
    • pyparsing: Text parsing library.
    • text-unidecode: Decode text.
    • ujson: Fast serialization and deserialization of JSON.

    Reporting and Visualization

    • Pillow: Work with images (e.g., before/after photos).
    • imageio: Load and save images.
    • tabulate: Format data into tables.
    • matplotlib: Create graphs and charts.
    • reportlab / fpdf: Automatically generate PDFs for reports and results.
    • jinja2: Generate HTML templates for reports.
    • openpyxl: Save checklists or reports in Excel format.
    • xlrd: Work with Excel files.
    • xlwt: Create Excel 97/2000 files.
    • asciitree: Generate tree-like text structures.

    Parsing and Web Data

    • html5lib: Parse HTML.
    • soupsieve: Search within HTML documents.
    • lxml: Parse XML/HTML.
    • webencodings: Work with text encodings.

    Infrastructure and Utilities

    • docker: For deploying the project in containers.
    • boto3: Work with AWS, including S3 and other services.
    • logging: Standard library for detailed logging of events.
    • cryptography: Tools for encrypting data.
    • tomli: Read TOML files.

    Additional

    • charset-normalizer: Detect text encodings.
    • nh3: Generate HTML.
    • zipp: Work with archives.
    • sqlparse: Parse SQL statements.
    • xarray: Analyze multidimensional arrays.
  15. zvictor commented on Feb 9, 2025

    @zvictor
    Contributor

    Please give the #1686 PR a try!
    We need testers.

  16. matt-aitken commented on Apr 2, 2025

    @matt-aitken
    MemberAuthor

    In version 3+, we now have a Python extension

  17. added this to the v.92 milestone on Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions