Giter Club home page Giter Club logo

rd-apmm-python-lib-mediajson's Introduction

mediajson

Type-aware json serialiser and deserialiser.

Introduction

This library provides a custom JSON serialiser and deserialiser based on the ones in the standard python library but capable of understanding a wider range of python types including the mediatimestamps.timestamp type and the uuid.UUID type, and fractions.Fraction types.

Installation

Requirements

  • A working Python 3.10+ installation
  • The tool Docker is needed to run the tests, but not required to use the library.

Steps

# Install from pip
$ pip install mediatimestamp

# Install directly from source repo
$ git clone [email protected]:bbc/rd-apmm-python-lib-mediajson.git
$ cd rd-apmm-python-lib-mediajson
$ make install

Usage

import mediajson
import mediatimestamp

# Encode some json from a mediatimestamp.Timestamp object
print(mediajson.dumps(mediatimestamp.Timestamp.get_time()))

Documentation

The API is well documented in the docstrings of the module mediajson, to view:

make docs

This command will render documentation as HTML in the /docs directory. A rendered version of this documentation is available here.

Development

Commontooling

This repository uses a library of makefiles, templates, and other tools for development tooling and CI workflows. To discover operations that may be run against this repo, run the following in the top level of the repo:

$ make

Testing

To run the unittests for this package in a docker container follow these steps:

$ git clone [email protected]:bbc/rd-apmm-python-lib-mediajson.git
$ cd rd-apmm-python-lib-mediajson
$ make test

Continuous Integration

This repository includes GitHub Actions workflows for CI. The shared workflows are centrally managed and should not be modified.

Versioning

We use Semantic Versioning for this repository

Contributing

The code in this repository was previously released as part of the nmos-common library (https://github.com/bbc/nmos-common/). For contributing work please see the file CONTRIBUTING.md in this repository.

Please ensure you have run the test suite before submitting a Pull Request, and include a version bump in line with our Versioning policy.

Authors

  • James Weaver
  • Philip deNier
  • Sam Mesterton-Gibbons
  • James Sandford

For further information, contact [email protected]

License

See LICENSE.md

rd-apmm-python-lib-mediajson's People

Contributors

alexrawcliffe avatar andrewgibb avatar georginashippey avatar j616 avatar jamesba avatar jamesgibo avatar philipnbbc avatar samdbmg avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rd-apmm-python-lib-mediajson's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.