Skip to main content

Create/Delete files and edit them as markdown files in neovim

Project description

NotPy

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notpy-0.0.1.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

notpy-0.0.1-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file notpy-0.0.1.tar.gz.

File metadata

  • Download URL: notpy-0.0.1.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for notpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7db4f87f70e830e05f4be5be11e05a2fb9789ea58fcc803991135cfcf5a614f8
MD5 9405d2230ea78b02e1c65a52fecaf03e
BLAKE2b-256 f2c427cf894354bbcb15ea22acc32a99cf437d93188082d8722acd909611b2d1

See more details on using hashes here.

File details

Details for the file notpy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: notpy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for notpy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 adcc819aea5c2731bd518c1a220a6e1df44a69d8ee241fc6624c6970ec645745
MD5 56096580c1875f16c1dc44e83b634606
BLAKE2b-256 3d3392045c31478c4f27f7c4298a24797bb8ce0bc7c5dda99dbc0631d56a05c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page