Monkeytype SQLAlchemy
A SQLAlchemy-backed store for use with monkeytype by Instagram.
This store is schema-compatible with the default SQLite-backend store, merely using SQLAlchemy for database interactions. This allows easy use of any database dialect supported by SQLAlchemy
Usage
Create a monkeytype_config.py in your project folder as suggested by the MonkeyType docs
from monkeytype_sqlalchemy import SQLAlchemyConfig
CONFIG = SQLAlchemyConfig()
Alternately, modify your Config class to return an instance of the SQLAlchemyStore call trace store
from monkeytype.config import Config
from monkeytype.db.base import CallTraceStore
from monkeytype_sqlalchemy import SQLAlchemyStore
class MyConfig(Config):
def trace_store(self) -> CallTraceStore:
return SQLAlchemyStore.make_store("postgresql+psycopg:///localhost/my_database")
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file monkeytype_sqlalchemy-0.1.tar.gz.
File metadata
- Download URL: monkeytype_sqlalchemy-0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ce5ee193ddc2f712ec74848687ad734b22a5f4f1cf11f950aa8dea9f1a9e988
|
|
| MD5 |
4b622413fb83a8c53ab3e98c63e7be72
|
|
| BLAKE2b-256 |
e7421eb7daaaddbe16bd504b5e748630d0393f1fcef1bcfec03275a80428536d
|