Name | funcenter JSON |
Version |
1.4
JSON |
| download |
home_page | https://uncenter.org/funcenter |
Summary | Some random functions I made... includes color formatting, text formatting, basic math, and most of all... dumb algorithms. Enjoy. |
upload_time | 2023-02-07 20:20:28 |
maintainer | |
docs_url | None |
author | uncenter |
requires_python | >=3.8,<4.0 |
license | MIT |
keywords |
color
math
printing
simple
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Funcenter
This is a simple package. You can use it however you want! Please let me know if there are any errors.
### Color/Text Formatting
This package offers some basic color and text formatting, in the form of:
- bold(`str`), b(`str`)
- <span style="color:magenta">bold('str')</span> --> **str**
- italic(`str`), i(`str`)
- <span style="color:magenta">italic('str')</span> --> *str*
- underline(`str`), underl(`str`), ul(`str`)
- <span style="color:magenta">underline('str')</span> --> <u>str</u>
- format(`option`), color(`option`)
- Sets the format or color.
- clear()
- Clears all formatting.
- fprint(`option`, `str`), cprint(`option`, `str`)[^1]
- Print `str` in the format of `option`.
- <span style="color:magenta">fprint('bold, 'str')</span> --> **str**
### Printing
Some simple printing functions.
- println(`str`, `x`)
- Prints *`x`* new lines after the `str` (default is 1).
- printsln(`str`)
- Print the following print statement on the same line as `str`.
- printx(`str`, `x`)
- Print `str` *`x`* times. <span style="color:magenta">`printx('str', 3)`</span> prints the following
```
str
str
str
```
- typewriter(`str`, `speed`)[^1]
- Print `str` character-by-character (typewriter-like effect) using `speed` *(from slowest to fastest: 1, 2, 3)*.
- **<span style="color:red">`DO NOT USE WITH ESCAPE CHARACTERS`</span>**
### Math
Very very minimal and basic:
- is_decimal(`var`)
- Returns <span style="color:blue">`True`</span> if `var` is a decimal.
- factorial(`num`)
- Returns the factorial of `num`
### Other
- charsplit(`str`)
- Returns a <span style="color:blue">list</span> of each character in `str`.
- uncharsplit(`list`)
- Exactly what it sounds like. The reverse of the above; Returns a <span style="color:blue">string</span> of `list`. And yes I know how easy this is. I wanted it.
Any other functions not listed here are in development. Check back later.
[^1]: Work in progress. Use caution.
Raw data
{
"_id": null,
"home_page": "https://uncenter.org/funcenter",
"name": "funcenter",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "color,math,printing,simple",
"author": "uncenter",
"author_email": "contact@uncenter.org",
"download_url": "https://files.pythonhosted.org/packages/41/de/25ef01026a3b1c9d6b39002d7d7e8cfb29d072cbabd1b4719d95794c7f61/funcenter-1.4.tar.gz",
"platform": null,
"description": "# Funcenter\n\nThis is a simple package. You can use it however you want! Please let me know if there are any errors.\n\n### Color/Text Formatting\nThis package offers some basic color and text formatting, in the form of:\n- bold(`str`), b(`str`)\n - <span style=\"color:magenta\">bold('str')</span> --> **str**\n- italic(`str`), i(`str`)\n - <span style=\"color:magenta\">italic('str')</span> --> *str*\n- underline(`str`), underl(`str`), ul(`str`)\n - <span style=\"color:magenta\">underline('str')</span> --> <u>str</u>\n- format(`option`), color(`option`)\n - Sets the format or color.\n- clear()\n - Clears all formatting.\n- fprint(`option`, `str`), cprint(`option`, `str`)[^1]\n - Print `str` in the format of `option`.\n - <span style=\"color:magenta\">fprint('bold, 'str')</span> --> **str**\n\n### Printing\nSome simple printing functions.\n- println(`str`, `x`)\n - Prints *`x`* new lines after the `str` (default is 1).\n- printsln(`str`)\n - Print the following print statement on the same line as `str`.\n- printx(`str`, `x`)\n - Print `str` *`x`* times. <span style=\"color:magenta\">`printx('str', 3)`</span> prints the following\n \n ```\n str\n str\n str\n ```\n- typewriter(`str`, `speed`)[^1]\n - Print `str` character-by-character (typewriter-like effect) using `speed` *(from slowest to fastest: 1, 2, 3)*.\n - **<span style=\"color:red\">`DO NOT USE WITH ESCAPE CHARACTERS`</span>**\n\n### Math\nVery very minimal and basic:\n- is_decimal(`var`)\n - Returns <span style=\"color:blue\">`True`</span> if `var` is a decimal.\n- factorial(`num`)\n - Returns the factorial of `num`\n\n### Other\n- charsplit(`str`)\n - Returns a <span style=\"color:blue\">list</span> of each character in `str`.\n- uncharsplit(`list`)\n - Exactly what it sounds like. The reverse of the above; Returns a <span style=\"color:blue\">string</span> of `list`. And yes I know how easy this is. I wanted it.\n\nAny other functions not listed here are in development. Check back later.\n \n[^1]: Work in progress. Use caution.",
"bugtrack_url": null,
"license": "MIT",
"summary": "Some random functions I made... includes color formatting, text formatting, basic math, and most of all... dumb algorithms. Enjoy.",
"version": "1.4",
"split_keywords": [
"color",
"math",
"printing",
"simple"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c38fb8a18199862afb1029b9c6e069f666214ea37bf67ff2da1941b51a8c7554",
"md5": "ffb70e76af679003148be869579751f1",
"sha256": "eb8a9d88079ad7427ffdb2b599a0dd41113d3e0b5a175e5da5f671286e6d05a1"
},
"downloads": -1,
"filename": "funcenter-1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ffb70e76af679003148be869579751f1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 4394,
"upload_time": "2023-02-07T20:20:26",
"upload_time_iso_8601": "2023-02-07T20:20:26.534414Z",
"url": "https://files.pythonhosted.org/packages/c3/8f/b8a18199862afb1029b9c6e069f666214ea37bf67ff2da1941b51a8c7554/funcenter-1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "41de25ef01026a3b1c9d6b39002d7d7e8cfb29d072cbabd1b4719d95794c7f61",
"md5": "1021947c91f5eec707238f63778db0a0",
"sha256": "d1a1010aa5795f12cb8745c6616473435df933d69958c0dd1264dca26493de46"
},
"downloads": -1,
"filename": "funcenter-1.4.tar.gz",
"has_sig": false,
"md5_digest": "1021947c91f5eec707238f63778db0a0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 4406,
"upload_time": "2023-02-07T20:20:28",
"upload_time_iso_8601": "2023-02-07T20:20:28.385830Z",
"url": "https://files.pythonhosted.org/packages/41/de/25ef01026a3b1c9d6b39002d7d7e8cfb29d072cbabd1b4719d95794c7f61/funcenter-1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-07 20:20:28",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "funcenter"
}