Autogen Init: Simplify Package Setup
Autogen-Init is a Python tool designed to make __init__.py file updates seamless across your package, ensuring imports are clean and easy to access. It scans your package's directories to automatically update __init__.py files with all necessary class and function imports. Plus, it simplifies adding version and author details to your top-level __init__.py, boosting package metadata.
Features
- Auto Updates: Instantly refreshes
__init__.pyfiles with internal imports. - Metadata Enhancements: Adds version and author info effortlessly.
- Flexible Overwrites: Choose to update or append
__init__.pyfiles as needed.
📦 Installation
Get Autogen-Init with pip for a smooth integration:
pip install autogen-init
Usage
Activate Autogen-Init with the run command, setting your package's root as the start path. Opt to overwrite __init__.py files and add version and author data.
from autoinit import run
# Quick start
run(
start_path='C:/path/to/my_package',
overwrite=True,
version="1.0.0",
author="Minwoo(Daniel) Park <parkminwoo1991@gmail.com>"
)
Argument of run function:
- start_path (str): Your package's root directory.
- overwrite (bool): Flag to overwrite
__init__.pyfiles, default isTrue. - version (str): Package version for the top-level
__init__.py. - author (str): Package author(s) for the top-level
__init__.py.
Contributing
Your contributions are welcome! For bug reports, feature suggestions, or submissions, don't hesitate to get in touch or open a pull request.
©️ License
Autogen-Init is MIT licensed — see the LICENSE file for details.
Metadata
Release files for autogen-init 2.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| autogen-init-2.0.4.tar.gz | 4.2 kB | Without provenance | Details for autogen-init-2.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autogen_init-2.0.4-py3-none-any.whl | Python 3 | none | any | Details for autogen_init-2.0.4-py3-none-any.whl |
Total release size: 8.9 kB
Release files / autogen-init-2.0.4.tar.gz
| Download URL | autogen-init-2.0.4.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ee67233a6b625081685a217bd028ff5e0b465237dcd528b170f87e6322eceaa
|
|
BLAKE2b-256 checksum How to use checksums |
15705d4bd78ac33bc41312b819575f9998ee815ff84c3bb006dd9cff66465dd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / autogen_init-2.0.4-py3-none-any.whl
| Download URL | autogen_init-2.0.4-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
225676f5a0236b79580911e0b87e9a247ab2736d3e0e3829b53968ad070ea662
|
|
BLAKE2b-256 checksum How to use checksums |
a2edacf0553b7955f514e9d28db63c4f03f295a510f9b30943c959f23ac2132a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for autogen-init 2.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.