Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aarindave/ready_code
ready_code is a Python module to help Python developers develop their applications easily. This module promotes simplicity, readability, and reusable code.
https://github.com/aarindave/ready_code
Last synced: about 1 month ago
JSON representation
ready_code is a Python module to help Python developers develop their applications easily. This module promotes simplicity, readability, and reusable code.
- Host: GitHub
- URL: https://github.com/aarindave/ready_code
- Owner: aarindave
- License: mit
- Created: 2022-01-15T01:05:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-26T20:23:08.000Z (over 2 years ago)
- Last Synced: 2024-04-07T02:54:17.522Z (9 months ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ready_code
ready_code is a Python module to help Python developers develop their applications easily. This module promotes simplicity, readability, and reusable code.## Overview of Functions
### `close_files(*files)`
This function closes multiples files at the same time.
#### Example
```python
file_1 = open("file_1.txt")
file_2 = open("file_2.txt", "a")
file_3 = open("file_3.txt")close_files(file_1, file_2)
file_4 = open("file_4.txt", "w")
file_5 = open("file_5.txt", "r+")close_files(file_3, file_4, file_5)
```### `get_keys(dictionary, value)`
This function gets the keys, of a dictionary, with a particular value.
#### Example
```python
available_items = {"Apple": 4.99, "Banana": 4.99, "Cabbage": 12.99, "Dates": 9.99, "Eggplants": 10.99}five_dollar_items = get_keys(available_items, 4.99)
```### `file_exists(file, iterable=[])`
This function finds if a give files exists within a folder.
#### Example
```python
code_exists = file_exists("ready_code.py")print(code_exists)
```## Contact Us
Do you have any suggestions, questions, comments, or concerns? Reach out to the developer with [email protected]!