Skip to main content

# The Toran WSGI module This is an API gateway built on top of python’s native wsgiref module. It aims to be as simplistic and configurable as possible without recompiling the source.

## Config Driven Development The gateway was built with one thing in mind: ‘’Write less code, Write more config files’’. Why? Because you would prefer to have modular, understandable elements in a key element of the architecture.

### actions.ini In here you can create/update/delete different actions to take on any resource. For example a list is a GET on a resource without ID specified while a delete is a DELETE method with id specified.

### rules.ini In here you provide the rules for each resource, what actions they can perform (list, create, etc).

## The Server Script *server.py* is a python script that loads the config files once and starts serving requests using wsgi. Please check out the handlers package and its utils.

## Reloading There is a script called reloader.py that changes a byte in a file which then is kept in memory by the server, the server then checks it and reloads the configs without missing requests (This happens on the single next request).

Metadata

Release files for toran 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for toran 0.0.1
File Size Uploaded
toran-0.0.1.tar.gz 19.3 kB Details

Release files / toran-0.0.1.tar.gz

Download URL toran-0.0.1.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0e7d73d55f445a574966599a5345b10b54c01293e1d220b7f00a69b8c38c5568
BLAKE2b-256 checksum
How to use checksums
3398fa2fae4bfbf8efb598d329ea930daf60e1c346ccda31f3563b428bab5798
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page