pystrgpw
A simple package that generates random characters and can be used for strong passwords.
Requirements
- Python >= 3.9.x
Install
To install the package, use the command below:
pip install pystrgpw
Usage
The basic usage of this package is explained below.
import pystrgpw
strgpw = pystrgpw.Generator()
# Set the character length output.
strgpw.length(25)
# Execute the generate process.
strgpw.generate()
# Get the generated output and print "0123456789abcdefghijklmn..."
print(strgpw.get())
To Contribute
Development
To prepare the dev environment, you need to run the command below in your virtualenv:
pip install -e .[dev]
Unit Testing
To run the test cases, use the command below:
pytest -s --verbose
TravisCI and Coveralls
When using a public repository on GitHub, the integration between TravisCI and Coveralls.io is pretty easy. To get started with coveralls-python, make sure to add your repo on the Coveralls.io. If you will be using coveralls-python on TravisCI, you’re done here.
Publishing the Package
To build the source code using bdist_wheel and sdist, use the command below:
python setup.py bdist_wheel sdist
To publish the source distribution on pypi.org (pip), run the command below:
-
Install the twine:
pip install twine -
Execute twine upload:
twine upload dist/*
When using Docker as Local Environment Setup
Using Docker compose setup, we need to make sure to execute the commands below to avoid environment issues:
apk add --update --no-cache --virtual .tmp-build-deps gcc libc-dev linux-headers postgresql-dev libffi-dev
License
This package is open-sourced software licensed under the MIT license.
Metadata
Release files for pystrgpw 1.0.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 | Actions |
|---|---|---|---|---|
| pystrgpw-1.0.1.tar.gz | 3.3 kB | Without provenance | Details for pystrgpw-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pystrgpw-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pystrgpw-1.0.1-py3-none-any.whl |
Total release size: 6.8 kB
Release files / pystrgpw-1.0.1.tar.gz
| Download URL | pystrgpw-1.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a15bd1f4e38ce6ade10d4131fe0ad002cbb977132dc108bb6987c18cd90cb584
|
|
BLAKE2b-256 checksum How to use checksums |
56935f7e4db0bf80f4115df38f5258c4375f95271b3dc7f562a9ce23b465a84f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / pystrgpw-1.0.1-py3-none-any.whl
| Download URL | pystrgpw-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
039a6534c8ee6ca33da3f97bc68812eea1ca549bd7ecdb02c722a4901478ecfe
|
|
BLAKE2b-256 checksum How to use checksums |
a36fc257e0bc440e253b5672ed950e93633b1816816654e70eaf3358e58df24f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Security for pystrgpw 1.0.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.