Skip to main content

A Django app to to use treblle.

Project description

# Treblle for Django

Treblle makes it super easy to understand what’s going on with your APIs and the apps that use them. Just by adding Treblle to your API out of the box you get:

  • Real-time API monitoring and logging

  • Auto-generated API docs with OAS support

  • API analytics

  • Quality scoring

  • One-click testing

  • API management on the go

  • and more…

## Requirements

  • requests

## Dependencies

## Installation

You can install Treblle for django via [PYPi](https://pypi.org/). Simply run the following command:

`shell $ pip install treblle `

Dont forget to load the required python modules in your setting.py like so:

`python INSTALLED_APPS = [ ..., 'treblle', ] `

`python MIDDLEWARE_CLASSES = [ ..., 'treblle.middleware.TreblleMiddleware', ] `

# Getting started

Next, create a FREE account on <https://treblle.com> to get an API key and Project ID. After you have those simply initialize Treblle in your setting.py file like so for django:

`python TREBLLE_INFO = { 'api_key': os.environ.get('TREBLLE_API_KEY'), 'project_id': os.environ.get('TREBLLE_PROJECT_ID') } ` That’s it. Your API requests and responses are now being sent to your Treblle project. Just by adding these lines of code you get features like: auto-documentation, real-time request/response monitoring, error tracking and so much more.

# Need to hide additional fields?

If you want to expand the list of fields you want to hide, you can pass property names you want to hide by using the TREBLLE_HIDDEN_KEYS setting like in the example below.

`python TREBLLE_HIDDEN_KEYS = ["id", "email"] `

`python TREBLLE_INFO = { 'api_key': os.environ.get('TREBLLE_API_KEY'), 'project_id': os.environ.get('TREBLLE_PROJECT_ID'), 'hidden_keys' : TREBLLE_HIDDEN_KEYS } `

# Support

If you have problems of any kind feel free to reach out via <https://treblle.com> or email vedran@treblle.com and we’ll do our best to help you out.

# License

Copyright 2022, Treblle Limited. Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

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

treblle-0.4.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file treblle-0.4.tar.gz.

File metadata

  • Download URL: treblle-0.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for treblle-0.4.tar.gz
Algorithm Hash digest
SHA256 04d568ab71a9b3729c84910ff4cb7e80683a5e2c6d0b2795bf887b6e3a53a15f
MD5 11930d5d8a23fe1645b9fcfc7e9f0c94
BLAKE2b-256 47f0f05b1a4d0b6ea70a2548375502a74d55328123e3b6091c047d2e2635f676

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