UriPoint
Overview
UriPoint is a flexible Python library for creating, managing, and interacting with network endpoints across multiple protocols.
Features
Endpoint Management
- Create endpoints using full URI or component-based approach
- Support for multiple protocols (HTTP, HTTPS, WebSocket, FTP, etc.)
- Persistent endpoint configuration
- Easy endpoint listing and serving
Installation
pip install uripoint
CLI Usage
Creating Endpoints
- Full URI Approach
# Create an endpoint with full URI
uripoint --uri http://localhost:8080/api/status --data '{"status": "OK"}'
- Component-Based Approach
# Create an endpoint using individual components
uripoint --hostname localhost --path /api/status --protocol http --port 8000 --data '{"status": "OK"}'
Managing Endpoints
# List all configured endpoints
uripoint --list
# Serve all configured endpoints
uripoint --serve
Example Scenarios
HTTP Endpoint
# Create a simple HTTP status endpoint
uripoint --uri http://localhost:8000/health --data '{"status": "healthy"}'
WebSocket Endpoint
# Create a WebSocket endpoint
uripoint --protocol ws --hostname localhost --path /socket --port 8765 --data '{"type": "websocket"}'
FTP Endpoint
# Create an FTP endpoint
uripoint --protocol ftp --hostname ftp.example.com --path /files --port 21 --data '{"directory": "/public"}'
Programmatic Usage
from uripoint import UriPointCLI
# Create CLI instance
cli = UriPointCLI()
# Create an endpoint
cli.create_endpoint(
uri='http://localhost:8000/api/status',
data='{"status": "OK"}'
)
# List endpoints
cli.list_endpoints()
# Serve endpoints
cli.serve()
Supported Protocols
- HTTP
- HTTPS
- WebSocket (WS)
- WebSocket Secure (WSS)
- FTP
- SFTP
Contributing
Contributions are welcome! Please see CONTRIBUTING.md
License
This project is licensed under the terms of the LICENSE file in the project root.
Metadata
Release files for uripoint 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uripoint-0.5.0.tar.gz | 23.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uripoint-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.3 kB
Release files / uripoint-0.5.0.tar.gz
| Download URL | uripoint-0.5.0.tar.gz |
|---|---|
| Size | 23.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84c0c6f1586708473fd6565f81f7e2af6ae93c53ff440e177a8f1301d5b39e64
|
|
BLAKE2b-256 checksum How to use checksums |
7ac3c743604a22eee834c4ff414f02458fd2da72849d79ab6fd0ffd781733952
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|
Release files / uripoint-0.5.0-py3-none-any.whl
| Download URL | uripoint-0.5.0-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4490c65d2c054549c1794fb4ec67620fae5f1eb0abbb09a5c9911d5f200e08dc
|
|
BLAKE2b-256 checksum How to use checksums |
211ff0aefa7e1e08a3618dd3b90519a8cecc91cb6f54694e9aa7346c389eb38c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|