Skip to main content

Simple, easy-to-use loading sequence/progress bar module.

Reason this release was yanked:

Unusable - incorrectly packaged my myself... Sorry, it's my first ever packaged python project....

Project description

# PyLoadBar

> _**Simple, easy-to-use loading sequence module.**_

## About

---

- Useful for small intermittant pauses between console text returns, or code actions.

- Customizable, optional loading and completion messages available to print to the console.

- Loading message defaults to `"Loading..."`.
- Completion message defaults to `"Done!"`.

- Includes an _optional_ progress bar (simple change the `progressbar` parameter to equal `"True"`).

## Installing PyLoadBar

---

### Using pip

> _Easiest_ method.

- Run the following to install:

```python
pip install PyLoadBar
```

---

### Manual Installation

1. Download source code from the [PyLoadBar GitHub](https://github.com/PyLoadBar) repo.

2. Extract contents of the containing `**.zip` file to desired install location.

3. Navigate to directory containing extracted contents, and open said folder within a terminal.

4. Enter `pip install -r requirements.txt` to install all dependencies for this package.

5. Finally, move the `"PyLoadBar-vx.x.x"` diretory to your global Python 3rd-party package installation directory to be able to import `PyLoadBar` like any other module:

- `"path/to/python/Lib/site-packages/here"`

6. Done!

---

## Usage

- Within a `.py` project, simply import the `PyLoadBar` module to start using your custom loading sequence.

- `PyLoadBar` is _very_ simple to use.

- For example, try running the following:

```python

from PyLoadBar import load

equation = 20 * 20

load(msg_loading = 'Solving', msg_complete = 'Okay!\n')

print(equation)
```

- This will return:

```python
Solving...

100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00, 8.94it/s].

Okay!

400
```

- Of course, the _loading_ and _loading complete_ messages can be customized by passing custom strings to the `msg_loading` and `msg_complete` parameters respectively.

- Note that the progress bar **can** be toggled using the `progressbar: bool` parameter within the `load(msg_complete: str, msg_loading: str, progressbar: bool, time: int)` method.

- The time taken to completely fill the progress bar can be determined using the `time: int` parameter.
- Every 5 units = 1 second.
- e.g. `load(time=10)` would take 2 seconds to fill the progress bar.

---

## Contributing to PyLoadBar

- If you wish to help contribute to this project, along with the tools you need to develop and run tests, please run the following in your virtual env:
'''python
pip install -e .[dev]
'''

## Contact

- If you have any questions, comments, or concerns that cannot be alleviated through the [project's GitHub repository](https://github.com/schlopp96/PyLoadBar), please feel free to contact me through my email address:

- `schloppdaddy@gmail.com`


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

PyLoadBar-0.0.1.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

PyLoadBar-0.0.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PyLoadBar-0.0.1.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for PyLoadBar-0.0.1.tar.gz
Algorithm Hash digest
SHA256 612ba7f415a33b997b35c2cf60168dddcdc7b33479e92416d73d4078d081ab28
MD5 bd66131ecb7087d7a246d377d362a6e9
BLAKE2b-256 70cccc48a0bfe7c067785ab2ccbcad4beefa0e2771a7e7e7230a19f8ce0d376f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: PyLoadBar-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for PyLoadBar-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66b54249e0fa20e44f33ade8c113702ded77c42a363e14acf5dea8d5416bb895
MD5 3d9e64f8d334374a0e48c3a721c18256
BLAKE2b-256 466284a36d202e2434ad1d0f9a79041f6f47af51a92497d732049a89cbf866a4

See more details on using hashes here.

Provenance

Supported by

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