Skip to main content

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.toml file for Python packaging.
  • Creates a root-level __init__.py to expose package functionality.

Installation

Clone the repository or copy the pypackify.py script to your working directory.

Usage

  1. Create a config.json file 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"
  ]
}
  1. Run the script:
python pypackify.py --config config.json
  1. 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


Download files

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

Source Distribution

pypackify-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyPackify-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for pypackify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 96fc8430b05dc801ea4882ef6ed5f9df2b6984d9766f6c64e5762b265632e666
MD5 d0e77557777a49148d8f37b611fee10d
BLAKE2b-256 04688515029550dd504d89a6d6afe8adaeb498a3e3592f3c16a8b1a19b95c23c

See more details on using hashes here.

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

Hashes for PyPackify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4c7fc441032adb9b044ad6817ed0262ac1701d089401e0ee1aeb309183e03cd
MD5 c7c9e74641c6e77aa00a0376b52c47ef
BLAKE2b-256 b97ee0c7e0c2aa71cf93e9c15d5cb94479636817938f50d181c113ff6b1028d4

See more details on using hashes here.

Supported by

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