libunn


Namelibunn JSON
Version 0.1.9.1 PyPI version JSON
download
home_pagehttps://github.com/juanvel4000/libunn
SummaryMisc scripts that I write
upload_time2025-01-31 19:51:24
maintainerNone
docs_urlNone
authorjuanvel400
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# libunn

Misc python scripts that i do not find anywhere to put them in

**Note: All of the scripts in this repository are written by me**



## Scripts

### Spinner
#### About:
Simple spinning bar that uses **threading** for running on the background
#### Usage:
```python
import libunn, time
libunn.spinner.start('Hello!')
time.sleep(2)
libunn.spinner.stop()
```
### Phrases

#### About:
Phrases is a simple module that manages a list (**phrases**), Upon start, Phrases contains 10 basic phrases, you can add more phrases, or delete them if you want, It is not for serious projects
#### Usage:
```python
import libunn
print(libunn.phrases.rand())
libunn.phrases.add("Hello, World!")
print(libunn.phrases.rand())
libunn.phrases.rm("Hello, World!")
```
### Dice
#### About:
Roll a 6-faced dice
#### Usage:
```python
import libunn
libunn.dice.roll() # Roll one dice
libunn.dice.rollMultiple(2) # Roll two dices
```
### Log
#### About:
Self-explainatory, a log system with 6 Different modes
#### Usage:
```python
import libunn
log = libunn.log.Log('example.log')
log.XXXX("Sample Text") # Replace XXXX with one of the available Modes

```
#### Modes
- **0** Info
- **1** Success
- **2** Ok
- **3** Warn
- **4** Error
- **5** Fatal
### Epoch
#### About:
Calculate the **Unix** epoch (1970-1-1 00:00:00 UTC) and the **Unn** epoch (2025-1-1 00:00:00 UTC)
#### Usage:
```python
import libunn
while True:
  print(f'\rUnix: {libunn.epoch.unix()} | Unn: {libunn.epoch.unn()}', end="")
```
## Installation

Install libunn with pip

```bash
  pip install libunn
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/juanvel4000/libunn",
    "name": "libunn",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "juanvel400",
    "author_email": "juanvel400@proton.me",
    "download_url": "https://files.pythonhosted.org/packages/5f/97/94f7a0b6713fe66aa2415aa9e167120708f0841960b9796a5411461f6054/libunn-0.1.9.1.tar.gz",
    "platform": null,
    "description": "\n# libunn\n\nMisc python scripts that i do not find anywhere to put them in\n\n**Note: All of the scripts in this repository are written by me**\n\n\n\n## Scripts\n\n### Spinner\n#### About:\nSimple spinning bar that uses **threading** for running on the background\n#### Usage:\n```python\nimport libunn, time\nlibunn.spinner.start('Hello!')\ntime.sleep(2)\nlibunn.spinner.stop()\n```\n### Phrases\n\n#### About:\nPhrases is a simple module that manages a list (**phrases**), Upon start, Phrases contains 10 basic phrases, you can add more phrases, or delete them if you want, It is not for serious projects\n#### Usage:\n```python\nimport libunn\nprint(libunn.phrases.rand())\nlibunn.phrases.add(\"Hello, World!\")\nprint(libunn.phrases.rand())\nlibunn.phrases.rm(\"Hello, World!\")\n```\n### Dice\n#### About:\nRoll a 6-faced dice\n#### Usage:\n```python\nimport libunn\nlibunn.dice.roll() # Roll one dice\nlibunn.dice.rollMultiple(2) # Roll two dices\n```\n### Log\n#### About:\nSelf-explainatory, a log system with 6 Different modes\n#### Usage:\n```python\nimport libunn\nlog = libunn.log.Log('example.log')\nlog.XXXX(\"Sample Text\") # Replace XXXX with one of the available Modes\n\n```\n#### Modes\n- **0** Info\n- **1** Success\n- **2** Ok\n- **3** Warn\n- **4** Error\n- **5** Fatal\n### Epoch\n#### About:\nCalculate the **Unix** epoch (1970-1-1 00:00:00 UTC) and the **Unn** epoch (2025-1-1 00:00:00 UTC)\n#### Usage:\n```python\nimport libunn\nwhile True:\n  print(f'\\rUnix: {libunn.epoch.unix()} | Unn: {libunn.epoch.unn()}', end=\"\")\n```\n## Installation\n\nInstall libunn with pip\n\n```bash\n  pip install libunn\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Misc scripts that I write",
    "version": "0.1.9.1",
    "project_urls": {
        "Homepage": "https://github.com/juanvel4000/libunn"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0442c694b85b178a9df11c39ca24bd65a4bee3c55d0ba93cf33f47dbfd73a736",
                "md5": "9402f6db3de8e8fb76612b1387dcd34d",
                "sha256": "db1bc897622cb47841f139c7e3bd93dd4c7081729285098b218db8fec5ad4ddd"
            },
            "downloads": -1,
            "filename": "libunn-0.1.9.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9402f6db3de8e8fb76612b1387dcd34d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4613,
            "upload_time": "2025-01-31T19:51:22",
            "upload_time_iso_8601": "2025-01-31T19:51:22.361634Z",
            "url": "https://files.pythonhosted.org/packages/04/42/c694b85b178a9df11c39ca24bd65a4bee3c55d0ba93cf33f47dbfd73a736/libunn-0.1.9.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f9794f7a0b6713fe66aa2415aa9e167120708f0841960b9796a5411461f6054",
                "md5": "53f836b4cb93ec6408f1871949fd9fbe",
                "sha256": "0f985575247c732b441c5aea030f2095501b4566a281aa8cb78f5bac45358f37"
            },
            "downloads": -1,
            "filename": "libunn-0.1.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "53f836b4cb93ec6408f1871949fd9fbe",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3580,
            "upload_time": "2025-01-31T19:51:24",
            "upload_time_iso_8601": "2025-01-31T19:51:24.175621Z",
            "url": "https://files.pythonhosted.org/packages/5f/97/94f7a0b6713fe66aa2415aa9e167120708f0841960b9796a5411461f6054/libunn-0.1.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-31 19:51:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "juanvel4000",
    "github_project": "libunn",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "libunn"
}
        
Elapsed time: 0.66121s