Skip to main content

notepads - PyPi

License Python Versions

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:


"""

Metadata

Release files for notepads 5.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notepads 5.8.0
File Size Uploaded
notepads-5.8.0.tar.gz 813.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for notepads 5.8.0
File Interpreter ABI Platform
notepads-5.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 828.9 kB

Release files / notepads-5.8.0.tar.gz

Download URL notepads-5.8.0.tar.gz
Size 813.6 kB
Tags Source
SHA-256 checksum
How to use checksums
49dd3612249653441656c537256c6a264cb544ec02defe6ee9b07655f641b0c6
BLAKE2b-256 checksum
How to use checksums
83e696cb7c534fe5d2d1633a21d2dc09953dcd99ca1a17d0f1c4d074e10c8d73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / notepads-5.8.0-py3-none-any.whl

Download URL notepads-5.8.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d57aa190be32364dcfefcb9d3a19fdb09b6650da7b1b466cb4ea4e7034c6b6ad
BLAKE2b-256 checksum
How to use checksums
36f2fa661cef7daff430759fd0d213794c06a6d430f538c74f8825a683c20496
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release history Release notifications | RSS feed

This release

5.8.0 This release

2 release files

5.7.9

2 release files

5.7.8

2 release files

5.7.7

2 release files

5.7.6

2 release files

5.7.5

2 release files

5.7.4

2 release files

5.7.3

2 release files

5.7.2

2 release files

5.7.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page