Skip to main content

NotPy

A command line tool to manage markdown files for taking notes.

Test Python Package

Introduction

NotPy is a tool to help you manage markdown files for taking notes. You can create, edit, and delete notebooks and pages with simple CLI commands. NotPy is built using Python, and it uses some third-party libraries such as click, pathlib, and toml.

Getting started

To use NotPy, you need to install Python 3.6 or later. To install NotPy, clone the repository and install the requirements:


git clone https://github.com/NotPy/notpy.git
cd notpy
pip install -r requirements.txt

To start NotPy, you can run the command:

python notpy.py

You can also run NotPy from anywhere by adding the path to the notpy.py file to your system's PATH variable.

Usage

NotPy has four main commands: ls, edit, create, and delete.

ls

The ls command is used to list notebooks and pages. To list notebooks, use the command:

notpy ls nb

To list pages in a notebook, use the command:

notpy ls pg <notebook_id_or_name>

Replace <notebook_id_or_name> with the ID or name of the notebook you want to list the pages for.

edit

The edit command is used to edit pages. To edit a page, use the command:

notpy edit pg <notebook_id_or_name> <page_id_or_name>

Replace <notebook_id_or_name> with the ID or name of the notebook the page is in, and replace <page_id_or_name> with the ID or name of the page you want to edit.

create

The create command is used to create notebooks and pages. To create a notebook, use the command:

notpy create nb <notebook_id_or_name>

Replace <notebook_id_or_name> with the ID or name of the notebook you want to create.

To create a page, use the command:

notpy create pg <notebook_id_or_name> <page_name>

Replace <notebook_id_or_name> with the ID or name of the notebook you want to create the page in, and replace <page_name> with the name of the page you want to create.

delete

The delete command is used to delete notebooks and pages. To delete a notebook, use the command:

notpy delete nb <notebook_id_or_name>

Replace <notebook_id_or_name> with the ID or name of the notebook you want to delete.

To delete a page, use the command:

notpy delete pg <notebook_id_or_name> <page_id_or_name>

Replace <notebook_id_or_name> with the ID or name of the notebook the page is in, and replace <page_id_or_name> with the ID or name of the page you want to delete.

Configuration

NotPy reads its configuration from a JSON file located at $HOME/.config/notpy/config.json. You can modify this file to change the default settings for NotPy.

Contributing

Contributions to NotPy are welcome! If you find a bug, have a feature request, or want to contribute code, please create an issue or a pull request on GitHub.

License

NotPy is licensed under the GPLv3 License. See the LICENSE file for more information.

Metadata

Release files for notpy 0.0.5

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

Source distribution (sdist)

Source distribution for notpy 0.0.5
File Size Uploaded
notpy-0.0.5.tar.gz 21.1 kB Details

Built distribution (wheel)

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

Total release size: 45.9 kB

Release files / notpy-0.0.5.tar.gz

Download URL notpy-0.0.5.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6389e7b649529685b2162dd50c47d7f0ac0bb851cb340138ed03d3ef57dbc3b0
BLAKE2b-256 checksum
How to use checksums
a089f31acafec1a3e1d10732d7282c21960a60c4e35adbc5213fa08e8e04a93e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / notpy-0.0.5-py3-none-any.whl

Download URL notpy-0.0.5-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61120b88bd7899c50ae46dd3dbd95197e95f2cbe75c06b39bfdf7c89e80ab257
BLAKE2b-256 checksum
How to use checksums
66d511e176702db57e5ca0e11098c97a41b6cc9cd14ff2996374f9d6790c3ce0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.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