Skip to main content

reddit's python service framework

Project description

baseplate.py

It's much easier to manage a bunch of services when they all have the same shape: the way they're developed, the way they interact with the infrastructure they run on, and the way they interact with each other. Baseplate is reddit's specification for the common shape of our services. This library, Baseplate.py, is the Python implementation of that specification.

Baseplate.py glues together tooling for interacting with the reddit backend ecosystem and spackles over things that are missing. It integrates with Apache Thrift, Pyramid, and client libraries for many systems to transparently make your applications observable.

Baseplate applications transparently get:

  • Timing and request rate metrics using statsd
  • Distributed tracing with Zipkin
  • Error reporting and aggregation with Sentry

And can take advantage of:

  • Integration with commonly used clients like: Thrift, SQLAlchemy, cassandra-driver, pymemcache, redis-py, and Kombu
  • Secrets securely pulled from Vault

And many other things!

pre-commit

This repo comes with pre-commit hooks that let you (on a voluntary basis) enable pre-commit and/or pre-push hooks.

Configuration can be found at the root of the directory in .pre-commit-config.yaml. On its own, the configuration file doesn't do anything. You either need to run the hooks manually or install them so that they run automatically on every commit or push.

Currently, we run the make fmt target on commit and make lint / pytest actions on push.

Specific hooks can be temporarily disabled.

You can install hooks only for a specific step (i.e. pre-push).

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

baseplate-2.5.8b4.tar.gz (362.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baseplate-2.5.8b4-py3-none-any.whl (178.8 kB view details)

Uploaded Python 3

File details

Details for the file baseplate-2.5.8b4.tar.gz.

File metadata

  • Download URL: baseplate-2.5.8b4.tar.gz
  • Upload date:
  • Size: 362.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.8.3 requests/2.28.1 setuptools/47.3.0 requests-toolbelt/0.10.0 tqdm/4.64.1 CPython/3.8.14

File hashes

Hashes for baseplate-2.5.8b4.tar.gz
Algorithm Hash digest
SHA256 1d6c68fb1dab0a8ec2e3b5972d22676519007afd18c46204c3032697d701a494
MD5 fee6775f903593a048d76d201bc1dae2
BLAKE2b-256 95755a4c1f2bcdfefb7d360456a690341e4f4bc7c4188fd52b2b33c76ecc7a5c

See more details on using hashes here.

File details

Details for the file baseplate-2.5.8b4-py3-none-any.whl.

File metadata

  • Download URL: baseplate-2.5.8b4-py3-none-any.whl
  • Upload date:
  • Size: 178.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.8.3 requests/2.28.1 setuptools/47.3.0 requests-toolbelt/0.10.0 tqdm/4.64.1 CPython/3.8.14

File hashes

Hashes for baseplate-2.5.8b4-py3-none-any.whl
Algorithm Hash digest
SHA256 354e4c22fe8c0468bfed1048246e6873fb3776d8d110a13cd3b67ccfc493bd8d
MD5 361365f50e906f10a1bfc2ad433f5c45
BLAKE2b-256 0c6b5c3cabc166495182c3bed8641f117234bb3ad3306a6a611a51582b5d22fd

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