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

Download files

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

Source Distribution

fake0407002-1.5.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

fake0407002-1.5-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file fake0407002-1.5.tar.gz.

File metadata

  • Download URL: fake0407002-1.5.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 fake0407002-1.5.tar.gz
Algorithm Hash digest
SHA256 8545e877700a1ce69199f7f0f93cda5d8ab6c97a272687b08722c83b6930293b
MD5 83fffef9e50a90a13046ba995e6e0d49
BLAKE2b-256 371862b720aaa61a81a8c410aab792929b8431a2129196201bb48610478fe482

See more details on using hashes here.

File details

Details for the file fake0407002-1.5-py3-none-any.whl.

File metadata

  • Download URL: fake0407002-1.5-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 fake0407002-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8d08df5c49bc6e59ec0f0037578ccbc475cb3e468dd59b136115e46e143f362f
MD5 1bbc27d1c668f40ec0fb2a584e14b2fb
BLAKE2b-256 3722b724ad3085d367b1512c0050fb276687635b3db58b5b5d55d4829abac868

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