Skip to main content

PyPi Install

Introduction

PyPi-Install enables you to upload Python code on pypi using just a single function call. After running this, you can install your library using the famous pip install mylibary command from any terminal.

Note

This libaray only attempts to automate steps listed on the official website Furthermore, if you want to know more about pypi, head here

Usage

Pre Requisites

Before using, you must have the following:

  • Your code uploaded on GitHub
    • Copy your github URL link
  • Your account made on PyPi
    • Remember your username and password, they will be used in the code below
Installation

Install using pip:

pip install pypi-install
Configuration

Configure all connection parameters here.

from pypi_install import pypi_install as PI
pypirc_username="my_pypi_username" # for e.g. "new_john"
pypirc_password= "my_pypi_password" # for e.g. "john123"
directory_of_new_folder = "path_new_directory" # for e.g. "/home/USER/New_Folder"
version_number="your_project_version_no" # for e.g. "0.0.2"
author_name_full="full_author_name" # for e.g. "John Smith"
author_email="author_email" # for e.g. johnsmith123@hotmail.com
short_description="short_description" # for e.g. "My first PyPi project"
github_url="your_code_github_url" # for e.g. https://github.com/USER/my_respistory
python_version="python_version_in_your_computer" for e.g. "3" or "2"
name_of_project="name_of_pypi_project" for e.g. "my_pypi_code"
directory_of_python_files=["PATH/my_python_file_1.py","PATH/my_python_file_2.py"] # Include all the python files here
Uploading the code!

Run Your function

make_pypi_folders(pypirc_username,pypirc_password,directory_of_new_folder,name_of_project,directory_of_python_files,version_number,author_name_full,author_email,short_description,github_url,python_version,invoke_python_by_name='python',license_type="MIT License",operating_system="OS Independent") # There, your code is uploaded on pypi! It's that easy!
Checking your recently installed package

To check your package, run this in terminal:

pip install your_package_name

It should be installed!

Release files for pypi-install 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypi-install 0.0.5
File Size Uploaded
pypi_install-0.0.5.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypi-install 0.0.5
File Interpreter ABI Platform
pypi_install-0.0.5-py2-none-any.whl Python 2 none any Details

Total release size: 9.3 kB

Release files / pypi_install-0.0.5.tar.gz

Download URL pypi_install-0.0.5.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
69f54be6e11a1fed5b1943a5fd367122f07cec3e5362a466676964626eb7dcb8
BLAKE2b-256 checksum
How to use checksums
94780e4a9b9b7dccbe61f10557f9bc1786523491845f9e10b181cf3ca1ee27d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.12

Release files / pypi_install-0.0.5-py2-none-any.whl

Download URL pypi_install-0.0.5-py2-none-any.whl
Size 5.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
058a87fcdf43ee5c038fd25f92f314bdc260578436f09a2ec45b5faef8adab9c
BLAKE2b-256 checksum
How to use checksums
d9449f2705471c83eafa4dee798602c5892d1bfdce2a33df504afacac3717c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.12

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page