Skip to main content

Simple tool to manage your bookmarks

Project description

Python SQLite Hatch project linting - Ruff code style - Black types - Mypy License - MIT

PyMarks (WIP)

🌟 About

PyMarks is a Python program designed to help you manage your bookmarks in a more efficient way. Uses SQLite3 as a database to store your bookmarks, allowing you to add, delete and update them as needed.

To make it easier to access your bookmarks, the program provides a menu system that can be accessed using tools such as Dmenu, Rofi or fzf in terminal. With this menu system, you can search and fuzzy find the bookmark you're looking for, and then open it in your preferred web browser. PyMarks is a great tool for anyone who wants to keep their bookmarks organized and accessible.

⚡️ Requirements

  • Rofi (More options)
  • dmenu (Optional)
  • fzf (Optional)
  • xclip (clipboard)

📦 Installation

You can install this tool using pipx (recommended), pip or by cloning the repository

⭐ Using pipx (recommended)

pipx install pymarks

Using pip

pip install pymarks

Clone repository

# clone repository
$ git clone "https://github.com/haaag/PyMarks"
$ cd PyMarks

# create virtual environment & source
$ python -m venv .venv && source .venv/bin/activate

# install dependencies
$ pip install -r requirements.txt

# run
$ pymarks

🚀 Usage

$ pymarks --help
PyMarks is a simple tool to assist you in efficiently
organizing and managing your bookmarks.

The tool simplifies the process of accessing, adding, updating,
and removing bookmarks.

options:
    -m, --menu                  Select menu (default: rofi)
    -V, --version               Show version
    -h, --help                  Show help
    -v, --verbose               Verbose mode

supported menus:
   ['dmenu', 'rofi', 'fzf']

optional environment variables:
    PYMARKS_HOME                Overrides default PyMarks location
    PYMARKS_BACKUP_MAX_AGE      Overrides backup age check interval
    PYMARKS_BACKUP_MAX_AMOUNT   Overrides backup max amount

⌨️ Keybinds (rofi exclusive)

Using rofi, you can use some keybinds.

Keybind Description
Alt+a Add new bookmark
Alt+c Change database
Alt+d Record detail
Alt+e Record options
Alt+i App information
Alt+t Filter by tag

📁 Folder structure

Directory structure $XDG_CONFIG_HOME/pymarks

$ ~/.config/pymarks (main*) tree
├── backup
│   ├── YYYY-MM-DD_bookmarks.db
│   └── YYYY-MM-DD_bookmarks.db
└── databases
    ├── bookmarks.db <-- Default
    ├── trash.db     <-- Deleted records
    ├── private.db
    └── work.db

🔥 Similar projects and inspiration

  • Buku 🌟 Thank You 🤘
Done

TODO

Priority

Description Progress
Use XDG_DIRS 100%
Add encrypt/decrypt option to database Planned
Create deleted/removed table Planned
Get keybinds in dmenu/fzf to work Planned

Environment variables

Description Progress
PYMARKS_HOME 100%
PYMARKS_BACKUP_WATCH 100%
PYMARKS_BACKUP_MAX_AGE 100%
PYMARKS_BACKUP_MAX_AMOUNT 100%

Actions

Description Progress
Update record (tags, URL) 100%
Delete record (tags, URL) 100%
Option to switch databases 100%
Option to add/remove database 100%
Option to show information (backups, keys, records, etc) 100%
Scrape title from website 100%
Scrape Description from website 100%
Multi-Select (for delete? for migrate? for any action…🤔) Planned

Databases

Description Progress
Add support for multi-database (e.g: personal and work) 100%
Create trash.db or dump.db for deleted records 100%
Option to restore from deleted to bookmark table Planned
Option to search in ALL databases Planned

Backups

Description Progress
Prompt for backup every <PYMARKS_BACKUP_MAX_AGE> number of days 100%
Option to disable check on runtime 100%
Keep <PYMARKS_BACKUP_MAX_AMOUNT> of backup files 100%

Misc

Description Progress
Add renumbered for the rowid (Each time a record is deleted?) Planned
Add URL validation when reading from clipboard Planned

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

pymarks-0.0.9.tar.gz (10.0 MB view details)

Uploaded Source

Built Distribution

pymarks-0.0.9-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file pymarks-0.0.9.tar.gz.

File metadata

  • Download URL: pymarks-0.0.9.tar.gz
  • Upload date:
  • Size: 10.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for pymarks-0.0.9.tar.gz
Algorithm Hash digest
SHA256 8548d5f641cf246c7a0bcbc6ce3ef97b38c85d4bd93dcfe3af0435f9a410840b
MD5 da352fc8c650de566833b84d2922da50
BLAKE2b-256 b9968ec001969ebdd5b3ca9a731c603fa896ee2ef7d3ea1d612bbdd8a643a3db

See more details on using hashes here.

File details

Details for the file pymarks-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: pymarks-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for pymarks-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 097aa3be4f8103488d64e8724e00ed4f3f3f99fb4aef190ced7c4f72acc3d043
MD5 88a2e0100fb6e6fcd4306f20bd0f5c69
BLAKE2b-256 990af88ee36be026bb129b819d757f96ae74658a68f0c89e04ed81a3658f478d

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