ㅤ
Project description
notepads - PyPi
notepads: V5.8.0
Installing
# Linux/macOS
python3 pip install -U notepads
# Windows
py -3 -m pip install -U notepads
Supports TypeHints
Create runtime only directory [1] -> Make folders [2] -> Make files [3] -> Make notes for code
========================================
# View Directory:
notepads.directory
notepads.dir
notepads.source
notepads.src
Directory Example Layout:
Directory["/notepads/"]
🗀 examples
↳ 🗎 example.py
🗎 main.py
========================================
Usage
100ms | (Average)
import notepads
notepads.note \
(name="introduction",
content="""Create runtime only directory
[1] -> Make folders
[2] -> Make files
[3] -> Make notes for code""",
author = "'notepads.py' Team")
print(notepads.get_note('introduction').content)
"""
Lets create a file `nps.txt` and a folder `examples` in the directory.
"""
notepads.folder \
(name="examples",
description="Examples of using notepads.",
version="0.1.0",
author="'notepads.py' Team",
some_random_kwarg='hi there!')
# folder.some_random_kwarg
# >>> hi there!
"""
Any other kwarg you pass in will be saved as a variable for you to access later.
"""
notepads.file \
(name="nps.txt",
description="This is a file.",
version="0.1.0",
author="'notepads.py' Team")
print(notepads.directory) # notepads.dir | notepads.source | notepads.src
"""
Output:
Directory["/notepads/"]
🗀 examples
🗎 nps.txt
"""
"""
Lets add a file `test.py` to the `examples` folder.
"""
notepads.file \
(name="test.py",
parent='examples')
print(notepads.directory) # notepads.dir | notepads.source | notepads.src
"""
Output:
Directory["/notepads/"]
🗀 examples
↳ 🗎 test.py
🗎 nps.txt
"""
"""
Now lets write to some files!
"""
nps_file = notepads.get('nps.txt')
test_file = notepads.get('examples').get('test.py')
nps_file.write("Hello, World!")
test_file.write("print('Hello, World!')")
print(nps_file.read())
print(test_file.read())
"""
nps.txt:
Hello, World!
test.py:
print('Hello, World!')
"""
nps_file.wipe()
print(nps_file.read())
"""
Output:
"""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
notepads-5.8.0.tar.gz
(813.6 kB
view details)
Built Distribution
notepads-5.8.0-py3-none-any.whl
(15.2 kB
view details)
File details
Details for the file notepads-5.8.0.tar.gz
.
File metadata
- Download URL: notepads-5.8.0.tar.gz
- Upload date:
- Size: 813.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49dd3612249653441656c537256c6a264cb544ec02defe6ee9b07655f641b0c6 |
|
MD5 | f55e9669a8a005bd6ed09431db5c8e9a |
|
BLAKE2b-256 | 83e696cb7c534fe5d2d1633a21d2dc09953dcd99ca1a17d0f1c4d074e10c8d73 |
File details
Details for the file notepads-5.8.0-py3-none-any.whl
.
File metadata
- Download URL: notepads-5.8.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d57aa190be32364dcfefcb9d3a19fdb09b6650da7b1b466cb4ea4e7034c6b6ad |
|
MD5 | d40c5a1381f7e2fcc2d9d2448c4b35ce |
|
BLAKE2b-256 | 36f2fa661cef7daff430759fd0d213794c06a6d430f538c74f8825a683c20496 |