Skip to main content

Generic Base framework for Web App backend using Twisted

Project description

https://travis-ci.org/Stibbons/txwebbackendbase.svg?branch=master https://coveralls.io/repos/github/Stibbons/txwebbackendbase/badge.svg Pypi package MIT licensed

Generic Base framework for Web App backend using Twisted

Features

Set of utility function not part of Twisted official library I often need, for example:

  • txwebbackendbase.logging.setupLogger: setup colorful logger

  • txwebbackendbase.request.[jsonify|dejsonify]: send or receive json with request/treq

  • txwebbackendbase.singleton.singleton: declare a class as singleton to instance it once in the whole application

  • txwebbackendbase.threading.deferredAsThread: function decorator to run a blocking function in a thread

Note: See pipenv documentation for Pipfile specification.

Contributing

Create your environment with

$ make dev

Activate the environment:

$ make shell

Execute a command directly inside the environment:

$ make run

Execute unit tests:

$ make test-unit

Build source package:

Use it for most package without low level system dependencies.

make pypi

Build binary package:

Needed for package with a C or other low level source code.

make bdist

Build Wheel package:

Always provide a wheel package.

make wheel

(Only for package owner)

Create a release:

Go on GitHub and create a tag with a semver syntax. Optionally you can tag code locally and push to GitHub.

git tag 1.2.3
make push

On successful travis build on the Tag branch, your Pypi package will be updated automatically.

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

txwebbackendbase-0.1.8.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

txwebbackendbase-0.1.8-py2.py3-none-any.whl (14.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file txwebbackendbase-0.1.8.tar.gz.

File metadata

File hashes

Hashes for txwebbackendbase-0.1.8.tar.gz
Algorithm Hash digest
SHA256 2b1ac1159f5126ee18fe4cc3a72c32ea190d811432fb891a88c56a971e582f58
MD5 2063e78b77433a847b6d49904072b970
BLAKE2b-256 558e7be8d2efb0c88433fd3873b8034bbbec3cac96f26133bce74a7605bada34

See more details on using hashes here.

File details

Details for the file txwebbackendbase-0.1.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for txwebbackendbase-0.1.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e60302b540095b6713bcaaabe9842aff36f61b8dccc82fd7ec0698b98664d03a
MD5 ef780852876998894980c9eee42a42ba
BLAKE2b-256 fe2e1a1b7498abb6fda4f399e7c02fb0a8eb158da16dd29945085e1d64e27f18

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