Skip to main content

A README.md generation tool

Project description

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:

  1. 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
    
  2. 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:

  1. 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)
    

    Example:

    from readme_ation import find_all_py_files, add_setup_with_versions
    
    file_paths = find_all_py_files('.')
    add_setup_with_versions('README.md', file_paths)
    
  2. 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)
    

    Example:

    from readme_ation import add_project_description
    
    project_details = {
        'title': 'My Awesome Project',
        'overview': 'This project does amazing things',
        'motivation': 'To make the world a better place',
        'technologies': 'Python, Machine Learning',
        'approach': 'Innovative algorithms',
        'challenges': 'Scaling to big data',
        'key_takeaways': 'Learned a lot about distributed systems',
        'acknowledgments': 'Thanks to the open source community'
    }
    
    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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

readme_ation-0.1.15.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

readme_ation-0.1.15-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file readme_ation-0.1.15.tar.gz.

File metadata

  • Download URL: readme_ation-0.1.15.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.19

File hashes

Hashes for readme_ation-0.1.15.tar.gz
Algorithm Hash digest
SHA256 1eeeae07efc56d64283afe06aae11f409cfaf16fdced44245267973c1b62b813
MD5 ec44c623d9cf7594d12a1bf186784581
BLAKE2b-256 8964a1a110c9dd65c063db3bcdad95ed5822fd63c0a4982fbc4cf3c2ead7f3ae

See more details on using hashes here.

File details

Details for the file readme_ation-0.1.15-py3-none-any.whl.

File metadata

File hashes

Hashes for readme_ation-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 861ee9bdca1eb14c917ba761bc825dc46e7719b42f55bb7a808c6c12dafb367f
MD5 69f371bd7025768b168d0f784b9007d8
BLAKE2b-256 8b103e26df6f67dd1fffa7838e059ef55bb0774d496e2c753e2483692b768a12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page