example-pkg-hta-helloworld-0.0.3
توضیحات
A hellowold example package
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | example-pkg-hta-helloworld-0.0.3 |
| نام | example-pkg-hta-helloworld |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Howtoautomate.in.th |
| ایمیل نویسنده | mart@howtoautomate.in.th |
| آدرس صفحه اصلی | https://github.com/howtoautomateinth/awesome-python |
| آدرس اینترنتی | https://pypi.org/project/example-pkg-hta-helloworld/ |
| مجوز | - |
# Example python package
example how to create python package and deploy to pip registory
## Prerequisite
- install wheel
```python
python3 -m pip install --user --upgrade setuptools wheel
```
- intstall twine
```python
python3 -m pip install --user --upgrade twine
```
## Build & Deploy Steps
- Go to setup.py directories and run the following command
- it will generated a lot of files include *dist* directory which include package
```python
python3 setup.py sdist bdist_wheel
```
- Upload all file to test server
- after finish uploading try to visit the link *https://test.pypi.org/project/example-pkg-YOUR-USERNAME-HERE*
- don't forget to create API token on [website](https://test.pypi.org/account/register/) first
```python
# first upload
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
```
- Or Upload to the world
- don't forget to create API token on [website](https://pypi.org/account/register/) first
```python
# no need for url twine will use default one
twine upload dist/*
```
## How to use
- for test server
```python
pip3 install -i https://test.pypi.org/simple/ example-pkg-hta-helloworld
```
- for global
```python
pip3 install example-pkg-hta-helloworld
```
- Then use in python3 console
```python
#access python console
python3
import hta_helloworld_pkg
```
### References
- [Official document](https://packaging.python.org/tutorials/packaging-projects/#packaging-your-project)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl example-pkg-hta-helloworld-0.0.3:
pip install example-pkg-hta-helloworld-0.0.3.whl
نصب پکیج tar.gz example-pkg-hta-helloworld-0.0.3:
pip install example-pkg-hta-helloworld-0.0.3.tar.gz