Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🐍 Rye Python template with CI + Global Config + Cursor Support

License

Notifications You must be signed in to change notification settings

Edison-Watch/Python-Template

Repository files navigation

Python-Template

2

Description of the project here.

Key Features β€’ Requirements β€’ Quick Start β€’ Configuration β€’ Credits Related About the Core Contributors

Dynamic TOML Badge Project Version Python Version License Dynamic YAML Badge GitHub repo size GitHub Actions Workflow Status


2

Key Features

  • Super opinionated python stack to enable super fast development on new projects without getting the usual tooling available
  • CI/Linters built-in
  • LLM Inference/Observability built-in
  • (Optional) saas branch contains default template for building SaaS apps

Requirements

  • Rye
    curl -sSf https://rye.astral.sh/get | bash
    

Quick Start

  • make all - runs main.py
  • make fmt - runs black linter, an opinionated linter
  • make banner - create a new banner that makes the README nice 😊
  • make test - runs all tests defined by TEST_TARGETS = tests/folder1 tests/folder2

Configuration Options

  1. Global config: global_config/global_config.yaml

  2. Environment Variables: Store environmnent variables in .env (Create this if not exists) and global_config/global_config.py will read those out automatically. Then, you can import them as follows:

    .env file:

    OPENAI_API_KEY=sk-...

    python file:

    from global_config import global_config
    print(global_config.OPENAI_API_KEY)

Credits

This software uses the following tools:

Related

Coming soon...

You may also like...

Coming soon...

About

🐍 Rye Python template with CI + Global Config + Cursor Support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.0%
  • Makefile 14.0%

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /