Skip to main content

No project description provided

Project description

To-pip

to-pip is a command line tool that helps you create Python packages from your Python files and upload them to PyPI with ease.

Installation

To install to-pip, use the following command:

python -m pip install to-pip

Usage

To use to-pip, simply run the following command:

python -m to_pip -n <package_name> -v <package_version> [-u <pypi_username> -p <pypi_password>] <python_files>

Where:

  • <package_name> is the name of your package.
  • <package_version> is the version of your package.
  • <pypi_username> is your PyPI username (optional).
  • <pypi_password> is your PyPI password (optional).
  • <python_files> are the Python files you want to include in your package.

For example, if you have a file hello.py that you want to include in your package, you can run the following command:

python -m to_pip -n hello-world -v 0.1.0 hello.py

This will create a package called hello-world with version 0.1.0, and containing the hello.py file.

If you have multiple Python files that you want to include in your package, you can specify them all as arguments:

python -m to_pip -n hello-world -v 0.1.0 hello.py world.py

By default, to-pip will create a console script for each Python file you include in your package. For example, if you include hello.py and world.py, to-pip will create two console scripts called hello and world. You can run these scripts from the command line once you install your package.

Uploading to PyPI

If you want to upload your package to PyPI, you can provide your PyPI credentials using the -u and -p options:

python -m to_pip -n hello-world -v 0.1.0 -u <pypi_username> -p <pypi_password> hello.py

This will upload your package to PyPI once it is created.

License

to-pip is distributed under the MIT License. See LICENSE for more information.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

fake-test-001-1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

fake_test_001-1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file fake-test-001-1.0.tar.gz.

File metadata

  • Download URL: fake-test-001-1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for fake-test-001-1.0.tar.gz
Algorithm Hash digest
SHA256 436c3114a5c9e7ff605c72fb7fe04f7916d6edbdfd7eafc3b6d240cffc3b0c4e
MD5 0339445b1dccb507b907a3019e8af96a
BLAKE2b-256 6fea13f8a2de344fdbf378fe5dcef49d8b11c5b4136d23a761a85009dae1892f

See more details on using hashes here.

File details

Details for the file fake_test_001-1.0-py3-none-any.whl.

File metadata

  • Download URL: fake_test_001-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for fake_test_001-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abc2bef30a86798901bd8e3a5079d0d6dc768a68bc436f55078f716a503cae19
MD5 6abdc56cdc3f5bc662c42673e595251b
BLAKE2b-256 0063dcfc512f1ee77dfe4f06eec53f7e1d90bc9a3d1bfa90377ce229945a5ab9

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