Skip to main content

needed now more than ever

Project description

xu60

an ideal backend

xu60 is a

  • Content-Addressable
  • Hyper Text Transport Protocol
  • Application Programmatic Interface

where hashes and character indexes

define immutable URLs

for re-usable content, (mostly) guaranteed not to rot as a website grows, changes, is edited, or is otherwised enhanced (or regressed)

scope

  1. xu60 should provide an HTTP server that is simultaneously capable of serving traditional web pages, scripts, and styles alongside whatever content-addressable data an application developer sees fit
  2. xu60 should contain additional functionality for querying document version histories and displaying document metadata such as original paths, edit dates, etc.
  3. besides documents, content-addressable document histories, and document/history metadata, xu60 should remain agnostic to use-case and ship as few features as is plausible
  4. xu60 should virtually never re-code the core algorithms that make its features possible. high-performance versions of virtually every element already exist--xu60 is a thin application layer built around known technologies. plus I'm dumb
  5. the "known technologies" that xu60 relies on should (wherever possible) already be infrastructurally important to the web and unlikely to disappear or be deprecated with any rapidity
  6. xu60 should be easy to run in a number of configurations to serve a number of applications--hypermedia-ing, mirroring, addressing, serving, distributing, archiving, auditing, etc.

demo and installation

xu60 comes with a demo application (built with htmx!! [under construction]) that serves as both a technical demonstration of the server's capabilities, proof-of-concept object browser, and tour of the server's own code.

source

# to run xu60 from its source:
git clone https://github.com/rfinz/xu60.git #clone the repository
cd xu60 #navigate into the project
python -m venv env #create a virtual environment
source env/bin/activate #activate the virtual environment
pip install -e . #install required dependencies and the xu60 application
uvicorn xu60:app #run the asgi application -- you may need to install uvicorn separately
# -> the demo should now be available at 127.0.0.1:8000

pypi

# to run as a package:
pip install xu60[server]
cd <your git repo>
uvicorn xu60:app 

to do

  • finish demo web app
  • package python application for distribution
  • re-write README to reflect the installation differences between a git based development install and using the package as a requirement for your own application
  • think of more to do

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

xu60-0.1.2.tar.gz (285.8 kB view details)

Uploaded Source

Built Distribution

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

xu60-0.1.2-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file xu60-0.1.2.tar.gz.

File metadata

  • Download URL: xu60-0.1.2.tar.gz
  • Upload date:
  • Size: 285.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for xu60-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8cda4f8e0ac2edb06c896b34f4e5ffe9e42e6149529722132420b89d8c97fb71
MD5 0f9ab0642872f3939c8be4ae3f727699
BLAKE2b-256 1d46e3b2748d3cb747abc7a251376ed348e5bf8327b24d4ddedc34b1ed1ce653

See more details on using hashes here.

File details

Details for the file xu60-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: xu60-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for xu60-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e1c0e330af4bd51b95533da8c9999fca202886dbaa22aa325876540b3f66eaf7
MD5 c57671f0161e3d47cab1be67467a90f6
BLAKE2b-256 9db65addc25d57014e595a25b7c5b4e6ad8229f277f583f8fc2a9ffa25e3d6ac

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