{"id":18077357,"url":"https://github.com/parisneo/requmancer","last_synced_at":"2026-03-14T05:36:50.335Z","repository":{"id":249272881,"uuid":"831103492","full_name":"ParisNeo/Requmancer","owner":"ParisNeo","description":"Requmancer is a powerful Python library and command-line tool that analyzes your Python project and generates a comprehensive requirements file. It automatically detects imported packages, determines their versions, and creates either a pip-compatible requirements.txt or a Poetry-style pyproject.toml section.","archived":false,"fork":false,"pushed_at":"2024-07-19T17:20:32.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T05:33:46.680Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ParisNeo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-19T17:03:53.000Z","updated_at":"2024-12-30T22:30:04.000Z","dependencies_parsed_at":"2024-07-19T20:04:20.346Z","dependency_job_id":"020d64ba-f7f8-42b2-99b3-b27aa065b3cf","html_url":"https://github.com/ParisNeo/Requmancer","commit_stats":null,"previous_names":["parisneo/requmancer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParisNeo%2FRequmancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParisNeo%2FRequmancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParisNeo%2FRequmancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParisNeo%2FRequmancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ParisNeo","download_url":"https://codeload.github.com/ParisNeo/Requmancer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248544974,"owners_count":21122060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T11:24:20.261Z","updated_at":"2026-03-14T05:36:50.287Z","avatar_url":"https://github.com/ParisNeo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Requmancer\n\nRequmancer is a powerful Python library and command-line tool that analyzes your Python project and generates a comprehensive requirements file. It automatically detects imported packages, determines their versions, and creates either a pip-compatible `requirements.txt` or a Poetry-style `pyproject.toml` section.\n\nWith Requmancer, managing your project's dependencies becomes a breeze, ensuring reproducibility and easier setup for other developers.\n\n## Features\n\n- Automatically detects third-party imports in your Python project.\n- Determines the installed versions of the imported packages.\n- Generates a `requirements.txt` file for pip or a `pyproject.toml` section for Poetry.\n- Handles both absolute and relative imports.\n- Excludes standard library modules from the requirements file.\n\n## Installation\n\nYou can install Requmancer using pip:\n\n```bash\npip install requmancer\n```\n\n## Usage\n\nRequmancer can be used both as a command-line tool and as a Python library.\n\n### Command-Line Usage\n\nTo generate a `requirements.txt` file for your project, navigate to the root directory of your project and run:\n\n```bash\nrequmancer .\n```\n\nYou can specify the output file name and format using the `-o` and `-f` options:\n\n```bash\nrequmancer . -o requirements.txt -f pip\nrequmancer . -o pyproject.toml -f poetry\n```\n\n### Python Library Usage\n\nYou can also use Requmancer as a Python library in your own scripts:\n\n```python\nfrom requmancer.main import RequirementsGenerator\n\ngenerator = RequirementsGenerator(directory='path/to/your/project', output_file='requirements.txt', format='pip')\ngenerator.generate()\n```\n\n## Example\n\nSuppose you have a Python project with the following structure:\n\n```\nmy_project/\n├── main.py\n├── module/\n│   └── submodule.py\n└── requirements.txt\n```\n\nAnd the `main.py` file contains:\n\n```python\nimport requests\nimport numpy as np\n```\n\nRunning `requmancer .` in the `my_project` directory will generate a `requirements.txt` file with the following content:\n\n```\nrequests==2.25.1\nnumpy==1.19.5\n```\n\n## Development\n\nTo contribute to Requmancer, follow these steps:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/ParisNeo/requmancer.git\ncd requmancer\n```\n\n2. Create a virtual environment and activate it:\n\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows, use `venv\\Scripts\\activate`\n```\n\n3. Install the development dependencies:\n\n```bash\npip install -r requirements_dev.txt\n```\n\n4. Run the tests:\n\n```bash\npytest\n```\n\n## License\n\nRequmancer is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n\n## Author\n\nRequmancer is developed and maintained by [ParisNeo](https://github.com/ParisNeo).\n\n## Acknowledgements\n\nSpecial thanks to the open-source community for providing the tools and libraries that made this project possible.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparisneo%2Frequmancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparisneo%2Frequmancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparisneo%2Frequmancer/lists"}