helloworldpy
This is a basic project for learning how to make the PIP(PyPI) package
To install the package!
On Windows:
$ pip install helloworldpy
On macOS and Linux:
$ sudo pip3 install helloworldpy
Changelog
Check the changelog here.
Example:
$ helloworldpy -h
usage: helloworldpy [-h] [-V] [-n [NAME [NAME ...]]] [-ip] [-g]
optional arguments:
-h, --help show this help message and exit
-V, --version show program version
-n [NAME [NAME ...]], --name [NAME [NAME ...]]
output Hello Name! or Hello World!
-ip, --checkip This will check public IP address of system
-g, --playgame You can play Bulls and Cows game
Usage
helloworldpy --name (with out arguments)
$ helloworldpy --name
Hello World!
helloworldpy --name (with arguments)
$ helloworldpy --name py
Hello Py!
You Can Play Bulls and Cows Game
$ helloworldpy --playgame
##############--->>> Rules: <<---################
# Note: #
# Bulls = correct code, correct position. #
# Cows = correct code, wrong position. #
#################################################
how many digits number you need? 2
enter a number you guess: 12
Cow : 0,Bull : 0
enter a number you guess: 34
Cow : 0,Bull : 1
enter a number you guess: 56
Cow : 0,Bull : 0
enter a number you guess: 89
Cow : 0,Bull : 1
enter a number you guess: 94
Cow : 1,Bull : 0
enter a number you guess: 93
Cow : 2,Bull : 0
enter a number you guess: 39
Cow : 0,Bull : 2
|-------------------------------|
YOU WON!
* Answer is "39"
* Number of attempts are 7
|-------------------------------|
Cheat codes were added
##############--->>> Rules: <<---################
# Note: #
# Bulls = correct code, correct position. #
# Cows = correct code, wrong position. #
#################################################
how many digits number you need? 3
enter a number you guess: 124
Cow : 1,Bull : 0
enter a number you guess: 412
Cow : 1,Bull : 0
enter a number you guess: 421
Cow : 1,Bull : 0
enter a number you guess: 456
Cow : 0,Bull : 0
enter a number you guess: 132
Cow : 2,Bull : 0
enter a number you guess: 213
Cow : 0,Bull : 2
enter a number you guess: answer
>>>>>
Do you really want to give up?
Don't Give Up!!
I know you Can do it!
<<<<<<
y/n : y
|---------------------------------------|
YOU LOST!
* Answer is "203"
* Number of attempts are 7
* Because you used cheat code!!
|---------------------------------------|
To Check System public IP Address
$ helloworldpy --checkip
Public IP Address: 130.242.022.330
- Note: The above IP is Demo
Build Guide:
python setup.py sdist bdist_wheel
twine check dist/*
License
Copyright (c) 2020 Saketh Chandra
Metadata
Release files for helloworldpy 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| helloworldpy-1.1.1.tar.gz | 8.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| helloworldpy-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / helloworldpy-1.1.1.tar.gz
| Download URL | helloworldpy-1.1.1.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a66996225b80c04c7507978c4a5112c5bbbc85495a5592237381d71727543f51
|
|
BLAKE2b-256 checksum How to use checksums |
70d0a308bbcba9c5642e5e57aa8b3fa4f3c4ba5779452686395f1c040ceecfc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0
|
Release files / helloworldpy-1.1.1-py3-none-any.whl
| Download URL | helloworldpy-1.1.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6561268a89ee1e634b159d9f8bea5b2b02c0c7cbafdb71700f0acf6202cce7b
|
|
BLAKE2b-256 checksum How to use checksums |
2806c50fd3b290e7ac6fbb848c53211873833233f9c8fea371e1a3a96e516e07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0
|
Security for helloworldpy 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.