| Name | Penguin-Services JSON |
| Version |
2.0.0
JSON |
| download |
| home_page | |
| Summary | |
| upload_time | 2022-12-01 20:36:25 |
| maintainer | |
| docs_url | None |
| author | VeteranCode |
| requires_python | |
| license | MIT |
| keywords |
|
| VCS |
|
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# Penguin-Services
[](https://github.com/jacob-h-barrow/Penguin-Services)
[](https://github.com/jacob-h-barrow/Penguin-Services)
[](https://github.com/jacob-h-barrow/Penguin-Services)
[](https://github.com/jacob-h-barrow/Penguin-Services)
[](https://github.com/jacob-h-barrow/Penguin-Services/blob/main/Penguin-Services.png)

- Created By Jacob H Barrow
## Why Was It Created
- Every time I start a new project, it seems that I reuse a lot of the same tools.
- Ideally, this package would be a one-stop shop for all of my projects moving forward.
## Critical Installation
``` console
penguin@services:~$ sudo apt install net-tools
```
## Short Tutorial
``` python
>>> from PenguinServices import DateRangeGenerator, Find, Terminal, makeFolder, getDate, fileHasher, Identifiers, openFile, pathExists, verifyFolder
>>> # Linux alternatives are untested at the moment
>>> # Examples but not all shown
>>>
>>> forward = DateRangeGenerator(15, 1, 2022, count=78)
>>> backwards = DateRangeGenerator(15, 1, 2022, count=78, forward = False)
>>>
>>> for day in forward:
>>> print(day, end=", ")
>>>
>>> for day in backwards:
>>> print(day, end=", ")
>>>
>>> # Runs faster than find across a user directory. Still need to work out the code for dirSearch. Once that is solved, the code should be as fast as find for all scenarios.
>>> # Experimental Option to make fileOptions provided by os.stat(path)
>>> flatFiles = Find("/home/fox/Desktop/", patterns = [r'^.*[.]py$'], patternThreshold = 100, ignoreHidden = True)
>>> flatFiles() # get a list of files that were found
>>>
>>> makeFolder("/home/fox/LOG_STORAGE/")
>>> pathExists("/home/fox/")
>>> verifyFolder("/home/fox")
>>> data = openFile("/home/fox/test.txt", splitLines = False)/
>>>
>>> # Terminal is experimental right now
>>> ## Will be used like this
>>> funcObjs = {idx: funcObj for idx, funcObj in enumerate([*funcObjs])}
>>> shell = Terminal(funcObjs, prompt = "Example@Linux$ ", errorMessage = "Not heard!")
>>> shell.start()
>>>
>>> # Experimental right now: Identifiers, Terminal
```
### GetFiles
- It's a replacement for find in Unix, but it will have more features
- This code snippet will be crucial for modernizing SELinux, the firewall project next month, etc.
- Still a prototype!!!
## When Will More Tools Be Available
- When I need a custom utility that is not available with this package it will be developed and uploaded.
## Frequency Of Development
- When my wife is at work I am developing. So close to six days a week!!
## Remember
- If you find this package helpful, follow mascots and join Dumbledore's Army!
Raw data
{
"_id": null,
"home_page": "",
"name": "Penguin-Services",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "VeteranCode",
"author_email": "jacob.h.barrow@gmail.com",
"download_url": "",
"platform": null,
"description": "# Penguin-Services\n[](https://github.com/jacob-h-barrow/Penguin-Services)\n[](https://github.com/jacob-h-barrow/Penguin-Services)\n[](https://github.com/jacob-h-barrow/Penguin-Services)\n[](https://github.com/jacob-h-barrow/Penguin-Services)\n[](https://github.com/jacob-h-barrow/Penguin-Services/blob/main/Penguin-Services.png)\n\n\n\n- Created By Jacob H Barrow\n\n## Why Was It Created\n- Every time I start a new project, it seems that I reuse a lot of the same tools.\n- Ideally, this package would be a one-stop shop for all of my projects moving forward.\n\n## Critical Installation\n``` console\npenguin@services:~$ sudo apt install net-tools\n```\n\n## Short Tutorial\n``` python\n>>> from PenguinServices import DateRangeGenerator, Find, Terminal, makeFolder, getDate, fileHasher, Identifiers, openFile, pathExists, verifyFolder\n>>> # Linux alternatives are untested at the moment\n>>> # Examples but not all shown\n>>>\n>>> forward = DateRangeGenerator(15, 1, 2022, count=78)\n>>> backwards = DateRangeGenerator(15, 1, 2022, count=78, forward = False)\n>>> \n>>> for day in forward:\n>>> print(day, end=\", \")\n>>>\n>>> for day in backwards:\n>>> print(day, end=\", \")\n>>>\n>>> # Runs faster than find across a user directory. Still need to work out the code for dirSearch. Once that is solved, the code should be as fast as find for all scenarios.\n>>> # Experimental Option to make fileOptions provided by os.stat(path)\n>>> flatFiles = Find(\"/home/fox/Desktop/\", patterns = [r'^.*[.]py$'], patternThreshold = 100, ignoreHidden = True)\n>>> flatFiles() # get a list of files that were found\n>>>\n>>> makeFolder(\"/home/fox/LOG_STORAGE/\")\n>>> pathExists(\"/home/fox/\")\n>>> verifyFolder(\"/home/fox\")\n>>> data = openFile(\"/home/fox/test.txt\", splitLines = False)/\n>>>\n>>> # Terminal is experimental right now\n>>> ## Will be used like this\n>>> funcObjs = {idx: funcObj for idx, funcObj in enumerate([*funcObjs])}\n>>> shell = Terminal(funcObjs, prompt = \"Example@Linux$ \", errorMessage = \"Not heard!\")\n>>> shell.start()\n>>>\n>>> # Experimental right now: Identifiers, Terminal\n```\n\n### GetFiles\n- It's a replacement for find in Unix, but it will have more features\n- This code snippet will be crucial for modernizing SELinux, the firewall project next month, etc.\n- Still a prototype!!!\n\n## When Will More Tools Be Available\n- When I need a custom utility that is not available with this package it will be developed and uploaded.\n\n## Frequency Of Development\n- When my wife is at work I am developing. So close to six days a week!!\n\n## Remember\n- If you find this package helpful, follow mascots and join Dumbledore's Army!\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "",
"version": "2.0.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "3311e57136a6f95f500782db240e96d0",
"sha256": "fb16a4e6a983f8641e893ba6877f415355418ffe04e1fb8186f2bf3951147a9a"
},
"downloads": -1,
"filename": "Penguin_Services-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3311e57136a6f95f500782db240e96d0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 9933,
"upload_time": "2022-12-01T20:36:25",
"upload_time_iso_8601": "2022-12-01T20:36:25.284009Z",
"url": "https://files.pythonhosted.org/packages/ab/c4/b92ee142b0805d6e5a3cfbbe51ac939a05f593283393b57dcba4a442d555/Penguin_Services-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-01 20:36:25",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "penguin-services"
}