Overview
readme-ation automates the generation of a README.md file with setup and run instructions tailored for your Python project. By analyzing your project's Python files, it identifies imported packages, determines their versions, and updates your README with precise environment setup instructions. Additionally, it allows you to seamlessly add comprehensive project descriptions.
Features
- Automated README Generation: Scans Python files to identify imported packages and their versions, generating environment setup instructions for a Mamba environment.
- Project Description Section: Enhances your README with detailed project information, including an overview, motivation, technologies used, approach, challenges, key takeaways, and acknowledgments.
Command Line Usage
You can use readme-ation directly from the command line:
-
Add Setup Instructions with Versions: To add setup instructions for all Python files in the current directory:
python -m readme_ation add_setup_with_versions README.md .
This command will analyze all Python files in the current directory, identify their dependencies and versions, and update the README.md file with setup instructions.
Or for specific files:
python -m readme_ation add_setup_with_versions README.md file1.py file2.py
-
Add Project Description:
python -m readme_ation add_project_description README.md '{"title": "Your Title", "overview": "Your overview", "motivation": "Your motivation", "technologies": "Technologies used", "approach": "Your approach", "challenges": "Challenges faced", "key_takeaways": "Key takeaways", "acknowledgments": "Acknowledgments"}'
Note: The project details must be provided as a valid JSON string.
This command will add a detailed project description to your README.md file based on the provided JSON string.
Python Script Usage
You can also use readme-ation in your Python scripts:
-
Generate Setup Instructions:
from readme_ation import find_all_py_files, add_setup_with_versions file_paths = find_all_py_files('your_project_directory') add_setup_with_versions('README.md', file_paths)
-
Add Project Description:
from readme_ation import add_project_description project_details = { 'title': 'Your Title here.', 'overview': 'Your project overview here.', 'motivation': 'The motivation behind your project.', 'technologies': 'Technologies and tools used in your project.', 'approach': 'Your approach to solving the problem.', 'challenges': 'Challenges faced during the project.', 'key_takeaways': 'Key takeaways and learnings from the project.', 'acknowledgments': 'Acknowledgments and credits.' } add_project_description('README.md', project_details)
Contributing
Please email me at chuckfinca@gmail.com if you would like to contribute.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Release files for readme-ation 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| readme_ation-0.1.18.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| readme_ation-0.1.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / readme_ation-0.1.18.tar.gz
| Download URL | readme_ation-0.1.18.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdc62fed2d0e2c1b72423d1795797b3d826217d794d3827668342d747bbde744
|
|
BLAKE2b-256 checksum How to use checksums |
3ce6f858d07067864ef9992b9663d3d34b2f189a5cd10d9f5982c123727b7ccc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.19
|
Release files / readme_ation-0.1.18-py3-none-any.whl
| Download URL | readme_ation-0.1.18-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75e9bfbb5bca581c6ed0f9181de5f80dbc788ed70973a9429933fadadf15d87d
|
|
BLAKE2b-256 checksum How to use checksums |
cb4ea634f2e41f890ff03a6b8a74aceacf510f5824422477c408441cfeb52488
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.19
|