Giter Site home page Giter Site logo

tomperez98 / pyrgo Goto Github PK

View Code? Open in Web Editor NEW
41.0 1.0 3.0 199 KB

Python project manager inspired in Cargo.

Home Page: https://pypi.org/project/pyrgo/

License: MIT License

Python 100.00%
cargo documentation linter mypy package-manager pytest python ruff styleguide testing

pyrgo's Introduction

pyrgo

PyPI downloads

Python project manager inspired in Cargo.

pyrgo does not reinvent the wheel. It's just a unified API that leverages popular libraries to improve your development experience.

All behind a unified API.

Usage: pyrgo [OPTIONS] COMMAND [ARGS]...

  pyrgo. Python package manager.

Options:
  -v, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  add     Add dependency to env.
  audit   Audit locked dependencies with `pip_audit`.
  build   Build project with `build`.
  check   Check code with `mypy`, `ruff` and `vulture`.
  clean   Clean project repository.
  doc     Build a package's documentation with `pdoc`.
  fix     Automatically fix lint warnings reported by `ruff`.
  fmt     Format code with `ruff`.
  lock    Lock project dependencies with `uv`.
  new     Create a project.
  remove  Remove dependency from env.
  sync    Sync current python environment to locked deps using `uv`.
  test    Run tests with `pytest`.

The minimal pyrgo project structure, as well as python project structure is this one:

.
├── README.md
├── pkg
│   └── __init__.py
├── pyproject.toml
└── tests
    └── test_something.py

Few extra configurations

[tool.pyrgo]
extra-paths = ["scripts"]
extra-caches = [".coverage"]
vulture-allowlist = ".allowlist"

pyrgo's People

Contributors

coactive-tomas avatar tomperez98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pyrgo's Issues

Substitute fmt with format

Hey,

Thank you very much for the project. I was wondering if fmt should be kept instead of format?

Every command is a full word, while we used an abbreviation for this, although it's not a really long word.

Thanks in advance!

`remove` command

Implement the remove command.

The workflow would go as follows:
Remove dependency from the specified group in the pyproject.toml file, lock changed group and sync using new requirements/*.lock file

`Add` command

Implement an add command.

The workflow would have to modify the pyproject.toml definition, adding the new dependency at the specified group. Lock the modified environment and sync to new requirments/*.lock

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.