Skip to main content

A url shortner and bookmark

Project description

urlshortner-byiambaka

A lightweight, keyboard-driven URL shortening service that manages your bookmarks via a beautiful CLI, backed by a high-performance FastAPI/Redis server. Features

Interactive CLI: Manage bookmarks with a clean, menu-driven interface.

Fast API: Asynchronous backend powered by FastAPI.

Redis Powered: Persistent storage for your bookmarks and short-links.

Automated: 5-character short ID generation and auto-redirection.

Prerequisites

Redis must be installed and running on your machine.

Installation

You can install the package directly via pip: Bash

pip install urlshortner-byiambaka

Quick Start

Start the Redis server:
Bash

redis-server

Launch the CLI: You can run the application directly from your terminal: Bash

urlshortner

Interact:
Use your arrow keys to select options:

    Create: Save a new long URL with a custom name.

    Show All: View your saved bookmarks and their generated proxy URLs.

    Delete: Remove existing bookmarks.

API Integration

The tool automatically spins up a background Uvicorn server on http://127.0.0.1:8000. You can interact with the API directly:

POST /add: Create a new bookmark.

GET /allbookmark: Retrieve all saved links.

DELETE /delete/{name}: Remove a link.

GET /{short_id}: Redirect to the original URL.

Configuration

The tool expects a local Redis instance running on the default port 6379. Ensure your environment variables are configured if your Redis setup uses non-standard ports or passwords. License

Distributed under the MIT License. See LICENSE 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

urlshortner_byiambaka-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

urlshortner_byiambaka-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file urlshortner_byiambaka-0.1.0.tar.gz.

File metadata

  • Download URL: urlshortner_byiambaka-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for urlshortner_byiambaka-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0624492be43f199e8745c4007a183f4d11954c6971947adb4cd277f8d3692b2
MD5 5391be604a461c0cc92efe431480fbef
BLAKE2b-256 c229ebc0f0b5eace30c5e1473ca267150d44e0a5307a96d9712052effb5cec8b

See more details on using hashes here.

File details

Details for the file urlshortner_byiambaka-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for urlshortner_byiambaka-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84a843f4a84c3b11b2f95c7ae99013f5a00ac2925688c7abd39043d2e88569d0
MD5 d2e7bb5848ccfe5ff0575c2e2c038582
BLAKE2b-256 20ba57b29303b57cde015adf43bcee02305509bfe48d2ac91bbee7ceb2ff3432

See more details on using hashes here.

Supported by

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