Skip to main content

No project description provided

Project description

to-pip

to-pip is a tool that makes it easy to convert a set of Python files into a Python package that can be uploaded to PyPI. It can also upload the package to PyPI for you, if you provide your PyPI credentials.

Usage

Web Interface

Github: https://github.com/bohachu/to_pip

Web interface: http://to-pip.falra.net

You can use the web interface of to-pip here. Simply upload your Python files, enter your package name and version, and click "Create Package". If you provide your PyPI credentials, you can also choose to upload the package to PyPI directly from the web interface.

Command Line Interface

You can also use the to-pip command-line tool to create a package from your Python files. To use it, simply install the to-pip package using pip:

pip install to-pip

Then, run the to-pip command with the following arguments:

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

You can set .env for PyPI Credentials

PYPI_USERNAME PYPI_PASSWORD

Here is what each argument means:

  • -n or --package_name: The name of your package.
  • -v or --package_version: The version of your package in x.x.x format.
  • -u or --pypi_username (optional): Your PyPI username. If you provide this, to-pip will upload your package to PyPI for you.
  • -p or --pypi_password (optional): Your PyPI password. If you provide this, to-pip will upload your package to PyPI for you.
  • <python_files>: The Python files that you want to include in your package.

Package Usage

Once you have created your package, you can install it using pip:

pip install <package_name>

After installing the package, you can use any functions or classes defined in your Python files as normal.

Example

Let's say you have two Python files, hello.py and world.py, that you want to package into a package called helloworld with version 1.0.0. Here's how you would use to-pip to create the package:

python -m to_pip -n helloworld -v 1.0.0 hello.py world.py

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

to-pip-3.11.38.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

to_pip-3.11.38-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file to-pip-3.11.38.tar.gz.

File metadata

  • Download URL: to-pip-3.11.38.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for to-pip-3.11.38.tar.gz
Algorithm Hash digest
SHA256 5381abd2a913281184431040f1af98ef5a43e45ec1c50546fa6675e1eef08197
MD5 34dbf7a8dfd79b47dffa599fc1de0b2d
BLAKE2b-256 2dbcd30afbaee4376ac1f8aab4ac16dd4402b1388b0909c59e21ec3c5622a148

See more details on using hashes here.

File details

Details for the file to_pip-3.11.38-py3-none-any.whl.

File metadata

  • Download URL: to_pip-3.11.38-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for to_pip-3.11.38-py3-none-any.whl
Algorithm Hash digest
SHA256 eeab708bbac5081006c94aa0021be26ebbdd1816a408c90a831e83fccfdb80e0
MD5 f7511abae6a5a949486fd66e9823c43f
BLAKE2b-256 54f6ab1e12293450ca3e003b15899fb9f8d5b8c33ccd0f5c4a2f6aa383f96a8e

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