Skip to main content

Random operations who cares

Project description

toolkit-pack

This is an example project demonstrating how to publish a python module to PyPI

Installation

Run the following to install:

pip install toolkitpack

Usage

from toolkitpack import add

# Add two numbers
a = 5
b = 5
add(a, b)

Steps to make your own

This guy taught me

  • Add your python code to src folder, the directory should look something like this

    a

  • Create a setup.py file in the same location as src folder

    • Add necessary configurations in setup.py, like
    # Don't use distutils, setup comes with Python in setuptools
      from setuptools import setup
    
      setup(
      name='toolkitpack',
      version='0.0.1',
      description='Random operations who cares',
      py_modules=['tookitFile', 'additionalFiles'],
      package_dir={'': 'src'},
    )
    
  • Let's create a wheel file (format in which we upload to PyPi)

    python setup.py bdist_wheel
    

    Don't be alarmed as this command will generate a lot of additional files

  • Install package locally using Pip

    pip install -e .
    

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

toolkitpack-0.0.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toolkitpack-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file toolkitpack-0.0.1.tar.gz.

File metadata

  • Download URL: toolkitpack-0.0.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6rc1

File hashes

Hashes for toolkitpack-0.0.1.tar.gz
Algorithm Hash digest
SHA256 60c756428c09c4d9a820cbaa35960cd0858497cc7a19f3e56cc0e45cd271a1c5
MD5 585337864b4effc0c45c23354f8672a9
BLAKE2b-256 9b07d930eed2370678fc0266d4474cd7667fe50f1e11ff4dab57f004bceeff02

See more details on using hashes here.

File details

Details for the file toolkitpack-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: toolkitpack-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6rc1

File hashes

Hashes for toolkitpack-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de02f6b659211fb77a8b1ac2239213d91167f2fc4d6736359192fc80f9b816c8
MD5 ad9cbe851abb10ccedae0cc41dc08a3b
BLAKE2b-256 cf89590364828af8984229b9c44e26afeada03f9712f99a02246a4d9cc4f331c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page