Skip to main content

Flexibly Represented Interactive Data

Project description

FRID: Flexibly Represented Interactive Data

This Python package is a tool for data manipulation.

Supported data types include:

  • All JSON types: string, integer, floating point, boolean, null, array (as Python lists), and object (as Python dictionaries).
  • Additional data types: binary types (bytes/bytearray/memoryview) and date types (date/time/datetime).
  • Base classes are provided for user-extensible data structures, allowing users to convert between any customized data structures and string representations.

Current key features include:

  • A data serialization/deserialization tool:
    • Data can be dumped into and loaded from a string representation that is more concise than the JSON format.
    • The library is capable of encoding data in fully JSON- or JSON5-compatible formats, including escape sequences in strings to support additional data types.
  • A number of utilities functions and classes, including some asyncio utilities.
  • A key/value store supporting memory, file system, redis, and sqlalchemy as backends.
  • Web application support tools, such as:
    • Converting data from HTTP request bodies based on content type.
    • Converting data types to HTTP requests and setting the correct headers.
    • Sending streaming responses if the data of the body comes from an asynchronous iterator.
    • A mimimal web server routing framework, supporting both WSGi and ASGi.
    • Websocket support for ASGi.

Dependencies:

The package do not have required dependencies, but it needs a few optional dependencies to run some features:

  • redis: for Redis support; also a system command redis-server to run unit tests.
  • sqlalchemy: for SQL support, with some additional packages depending on backend; to run async key/value store with Sqlite, one need aiosqlite and greenlet to run the unit tests. For Postgres, the following are needed:
    • psycopg[binary] for sync Postgres support,
    • asyncpg for async Postgres support.
  • For web servers:
    • gunicorn to run WSGi unit tests.
    • uvicorn to run ASGi unit tests.
  • For websocket support (ASGi only):
    • websockets with uvicorn (or install uvicorn[standard]); it also allows us to run websockets' threading-based sync client for unit tests.
    • websocket-client to run websocket-client-based unit tests.

Other possibilities that haven't been tested:

  • For ASGi: daphne and hypercorn;
  • For ASGi with uvicorn: wsproto is an alternative to websockets.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frid-0.5.1.tar.gz (122.6 kB view details)

Uploaded Source

Built Distribution

frid-0.5.1-py3-none-any.whl (137.6 kB view details)

Uploaded Python 3

File details

Details for the file frid-0.5.1.tar.gz.

File metadata

  • Download URL: frid-0.5.1.tar.gz
  • Upload date:
  • Size: 122.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for frid-0.5.1.tar.gz
Algorithm Hash digest
SHA256 6acdd898eb4c626537805355074cc0e7945bb048193b5dedbe92e2a182c7360b
MD5 5aadb71abcc2913d92ea9a3cf448cb5c
BLAKE2b-256 7d839104c19928399c46edac02b11a157e8c74526d6842564f7f784bab1bb24b

See more details on using hashes here.

File details

Details for the file frid-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: frid-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 137.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for frid-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 270145a4fa83b7087aafa692c58f8ca6c3c4afc2489a1648145288cb122a5327
MD5 fea5e999f0b80b9a7cb0ec363d3d085a
BLAKE2b-256 2ad6746d928b2c3b26168f78639eb88010f41e3a97edb0b2896e86668738508e

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