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 toolkitFile import add
# Add two numbers
add(5, 10)
Steps to make your own
-
Add your python code to src folder, the directory should look something like this
-
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 .
-
After making sure everything is working perfectly lets bind everything together
python setup.py bdist_wheel sdist
-
Now to upload our packages to PyPI index we need a tool named twine. Install it using the following command
pip install twine
Now upload the files in dist folder, it will ask for username and password
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toolkitpack-0.0.2.tar.gz.
File metadata
- Download URL: toolkitpack-0.0.2.tar.gz
- Upload date:
- Size: 2.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02b942f805881a2477db69cb49195ac4261f1b390665074a5f7a9a2e66eab275
|
|
| MD5 |
39e912ee1f806c6e9def44ca62d161b6
|
|
| BLAKE2b-256 |
b1d1ddde35ab1112b34e0c7999481a37e2e26893fc1a0ca73b11573f82b15444
|
File details
Details for the file toolkitpack-0.0.2-py3-none-any.whl.
File metadata
- Download URL: toolkitpack-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f78370c1a6da1f38542b77ea3df49a57d1062a599c616cc7a8a629bc6d009346
|
|
| MD5 |
6361f1f69e9f2bbcb036d23b4f28f7ea
|
|
| BLAKE2b-256 |
277b307856713a4bbf0ad199b431e3bed66bf7d374f51b1dc2618af3b4f0c3f5
|