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

Download files

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

Source Distribution

fake04072345-1.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

fake04072345-1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file fake04072345-1.1.tar.gz.

File metadata

  • Download URL: fake04072345-1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for fake04072345-1.1.tar.gz
Algorithm Hash digest
SHA256 9f5f9e9a4e5404da8d1e0ae75783ed38a753faa89fe94685d92600a3f5ce86da
MD5 da8caafceb44552ad306f0d58e971094
BLAKE2b-256 3ccca5cb3b38e3f1391d156d3ffee3840aaa67837ee03c5da9cb0c2a337456ee

See more details on using hashes here.

File details

Details for the file fake04072345-1.1-py3-none-any.whl.

File metadata

  • Download URL: fake04072345-1.1-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.9.16

File hashes

Hashes for fake04072345-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa159bd8e0ff276d74039c16bf7010407953499d12a3fdca16cd77c2f1660946
MD5 d396bcd92f30ff6b3e4d4e912740a6c9
BLAKE2b-256 7bc639824127b553bdd33abf9c817d4807dd640a3fea0497ab2147b870ec1c97

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