Easily create Python packages from a single Python file.
Project description
PyPackify
PyPackify is a tool for converting multiple Python files into a structured Python package. It generates essential package files for easy usage and distribution.
Features
- Converts multiple Python files into a Python package.
- Generates a
pyproject.tomlfile for Python packaging. - Creates a root-level
__init__.pyto expose package functionality.
Installation
Clone the repository or copy the pypackify.py script to your working directory.
Usage
- Create a
config.jsonfile specifying your package metadata and Python files to include.
Example config.json:
{
"name": "example_package",
"version": "0.1.0",
"author": "John Doe",
"author_email": "johndoe@example.com",
"description": "An example package created with PyPackify.",
"license": "MIT",
"files": [
"example1.py",
"example2.py"
]
}
- Run the script:
python pypackify.py --config config.json
- Check the generated package directory:
example_package/
├── README.md
├── pyproject.toml
├── __init__.py
├── src/
│ ├── example1.py
│ ├── example2.py
License
This project is licensed under the MIT License.
Generated with PyPackify. Package your python files, the easy way.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypackify-0.1.0.tar.gz.
File metadata
- Download URL: pypackify-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96fc8430b05dc801ea4882ef6ed5f9df2b6984d9766f6c64e5762b265632e666
|
|
| MD5 |
d0e77557777a49148d8f37b611fee10d
|
|
| BLAKE2b-256 |
04688515029550dd504d89a6d6afe8adaeb498a3e3592f3c16a8b1a19b95c23c
|
File details
Details for the file PyPackify-0.1.0-py3-none-any.whl.
File metadata
- Download URL: PyPackify-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4c7fc441032adb9b044ad6817ed0262ac1701d089401e0ee1aeb309183e03cd
|
|
| MD5 |
c7c9e74641c6e77aa00a0376b52c47ef
|
|
| BLAKE2b-256 |
b97ee0c7e0c2aa71cf93e9c15d5cb94479636817938f50d181c113ff6b1028d4
|