Name | lgbt JSON |
Version |
2.3.3
JSON |
| download |
home_page | None |
Summary | Loading Graphical Bar Tracker |
upload_time | 2025-07-16 11:36:50 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | None |
keywords |
tracking
graphics
performance
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Loading Graphical Bar Tracker
> **Disclaimer**
> This is not propaganda. Any resemblance to real abbreviations or symbols is purely coincidental.
## `lgbt`- Beautiful progress bar with rainbow colors and other ways to customize the appearance
## Update news 2.3.3
- Optimized the console output method
- Removed some progress bar mods
- Fixed minor errors and bugs.
## Download
```bash
pip install lgbt
```
## Usage
### The standard way
```python
from lgbt import lgbt
for i in lgbt(range(1000000)):
pass
```

### With update
```python
from lgbt import lgbt
# total is necessary argument
bar = lgbt(total=1000)
for i in range(1000):
bar.update(1)
```

### Advanced mode
```python
import time
from math import cos
from lgbt import lgbt
# returns a special type for monitoring values
tracker = lgbt.tracker()
x = 0.0
dx = 0.2
for i in lgbt(range(1000), desc="Cosinus", tracker=tracker, max_value=1.0):
# property item for change value of the current bar
tracker.item = cos(x)
x += dx
# static method to move to the next bar
lgbt.step(tracker)
time.sleep(0.1)
```

## Possible parameters
### Without tracker
```python
from lgbt import lgbt
lgbt(iterable, total, desc, mode, miniter, mininterval, hero)
```
- `iterable` - An iterable object or generator.
- `total` - The number of elements in the iterable, if not specified, is the length of the iterable.
- `desc` - Description in front of the progress bar.
- `mode` - Customizing the progress bar. To see which modes are available, use `lgbt.modes()`. Default `='white'`.
- `miniter` - Minimum number of iterations between renders. Default `=2500`.
- `mininterval` - Minimum time between renderings. Default `=0.1`.
- `hero` - Customization of the description string (emoji). To view all available options, use `lgbt.heroes()`. Default `='rainbow'`
### With tracker
All previous parameters work with the tracker, but new ones are also added.
```python
from lgbt import lgbt
lgbt(..., tracker, desc_hist, fix, max_value)
```
- `tracker` - A special type of container for a value that is displayed in the bars of a histogram.
- `desc_hist` - The description line for the table caption.
- `fix` - A Boolean value that controls the auto-scaling of the histogram. Default `=True`.
- `max_value` - The maximum absolute starting value for the histogram, if `fix=False` can be changed. Default `=0.5`
### About tracker
Tracker is a class with an item property that allows you to change the value of the current bar in the histogram. To move to the next bar, use `lgbt.step(tracker)`
Raw data
{
"_id": null,
"home_page": null,
"name": "lgbt",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "tracking, graphics, performance",
"author": null,
"author_email": "Johan Sundstain <johansundstainx@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/37/ce/012bebacaeda22b2a8f898aab96e8a7047dbbd56e4b57bac8e54a6f03a78/lgbt-2.3.3.tar.gz",
"platform": null,
"description": "# Loading Graphical Bar Tracker\r\n> **Disclaimer** \r\n> This is not propaganda. Any resemblance to real abbreviations or symbols is purely coincidental.\r\n\r\n \r\n## `lgbt`- Beautiful progress bar with rainbow colors and other ways to customize the appearance\r\n\r\n## Update news 2.3.3\r\n- Optimized the console output method\r\n- Removed some progress bar mods \r\n- Fixed minor errors and bugs.\r\n\r\n## Download\r\n```bash\r\npip install lgbt\r\n```\r\n\r\n## Usage\r\n### The standard way\r\n```python\r\nfrom lgbt import lgbt\r\n\r\nfor i in lgbt(range(1000000)):\r\n\tpass\r\n```\r\n\r\n\r\n### With update\r\n```python\r\nfrom lgbt import lgbt\r\n\r\n# total is necessary argument\r\nbar = lgbt(total=1000) \r\nfor i in range(1000):\r\n\tbar.update(1)\r\n```\r\n\r\n\r\n### Advanced mode\r\n```python\r\nimport time\r\nfrom math import cos\r\n\r\nfrom lgbt import lgbt\r\n\r\n# returns a special type for monitoring values\r\ntracker = lgbt.tracker()\r\nx = 0.0\r\ndx = 0.2\r\n\r\nfor i in lgbt(range(1000), desc=\"Cosinus\", tracker=tracker, max_value=1.0):\r\n\t# property item for change value of the current bar\r\n\ttracker.item = cos(x)\r\n\tx += dx\r\n\t# static method to move to the next bar\r\n\tlgbt.step(tracker)\r\n\ttime.sleep(0.1)\r\n```\r\n\r\n\r\n## Possible parameters\r\n### Without tracker\r\n```python\r\nfrom lgbt import lgbt\r\n\r\nlgbt(iterable, total, desc, mode, miniter, mininterval, hero)\r\n```\r\n- `iterable` - An iterable object or generator.\r\n- `total` - The number of elements in the iterable, if not specified, is the length of the iterable.\r\n- `desc` - Description in front of the progress bar.\r\n- `mode` - Customizing the progress bar. To see which modes are available, use `lgbt.modes()`. Default `='white'`.\r\n- `miniter` - Minimum number of iterations between renders. Default `=2500`. \r\n- `mininterval` - Minimum time between renderings. Default `=0.1`.\r\n- `hero` - Customization of the description string (emoji). To view all available options, use `lgbt.heroes()`. Default `='rainbow'`\r\n\r\n### With tracker\r\nAll previous parameters work with the tracker, but new ones are also added.\r\n```python\r\nfrom lgbt import lgbt\r\n\r\nlgbt(..., tracker, desc_hist, fix, max_value)\r\n```\r\n- `tracker` - A special type of container for a value that is displayed in the bars of a histogram.\r\n- `desc_hist` - The description line for the table caption.\r\n- `fix` - A Boolean value that controls the auto-scaling of the histogram. Default `=True`.\r\n- `max_value` - The maximum absolute starting value for the histogram, if `fix=False` can be changed. Default `=0.5`\r\n\r\n### About tracker\r\nTracker is a class with an item property that allows you to change the value of the current bar in the histogram. To move to the next bar, use `lgbt.step(tracker)`\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Loading Graphical Bar Tracker",
"version": "2.3.3",
"project_urls": {
"repository": "https://github.com/JohanSundstain/Loading-Graphical-Bar-Tracker"
},
"split_keywords": [
"tracking",
" graphics",
" performance"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6d88b517d5918be325395667354cf099b9a73af138dc7cb9b51aae0dedd5641c",
"md5": "91996e369fea7165a537bc72b8a87b4d",
"sha256": "f907b77dd12b7034b284607f71d4e5a5d7f07f32acfa802502f79d6e12f8785c"
},
"downloads": -1,
"filename": "lgbt-2.3.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "91996e369fea7165a537bc72b8a87b4d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 15207,
"upload_time": "2025-07-16T11:36:39",
"upload_time_iso_8601": "2025-07-16T11:36:39.884226Z",
"url": "https://files.pythonhosted.org/packages/6d/88/b517d5918be325395667354cf099b9a73af138dc7cb9b51aae0dedd5641c/lgbt-2.3.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "37ce012bebacaeda22b2a8f898aab96e8a7047dbbd56e4b57bac8e54a6f03a78",
"md5": "6635a57597653faeff5754eeeb43c5cd",
"sha256": "6443c97234e10b4702c02eb7cdbdd6277bac6dd73b4459236a834d784d70df69"
},
"downloads": -1,
"filename": "lgbt-2.3.3.tar.gz",
"has_sig": false,
"md5_digest": "6635a57597653faeff5754eeeb43c5cd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 13857,
"upload_time": "2025-07-16T11:36:50",
"upload_time_iso_8601": "2025-07-16T11:36:50.243854Z",
"url": "https://files.pythonhosted.org/packages/37/ce/012bebacaeda22b2a8f898aab96e8a7047dbbd56e4b57bac8e54a6f03a78/lgbt-2.3.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-16 11:36:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "JohanSundstain",
"github_project": "Loading-Graphical-Bar-Tracker",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "lgbt"
}