Skip to main content

Ramos

https://travis-ci.org/luizalabs/ramos.svg?branch=master https://codecov.io/gh/luizalabs/ramos/branch/master/graph/badge.svg

Generic backend pool

Setup

pip install ramos

Development setup

make install

Usage

import ramos

ramos.configure(pools={
    'backend_type': [
        'path.to.backend_a',
        'path.to.backend_b',
    ]
})

Integrations

Ramos can uses Django or Simple Settings to get backends configurations if set settings.POOL_OF_RAMOS:

POOL_OF_RAMOS = {
    'backend_type': [
        'path.to.backend_a',
        'path.to.backend_b',
    ]
}

Backend Implementations

from ramos.mixins import ThreadSafeCreateMixin


class BackendA(ThreadSafeCreateMixin):
    id = 'backend_a'
    def say(self):
        return 'A'


class BackendB(ThreadSafeCreateMixin):
    id = 'backend_b'
    def say(self):
        return 'B'

Backend Pool

from ramos.pool import BackendPool


class BackendTypePool(BackendPool)
    backend_type = 'backend_type'


backends = BackendTypePool.all()

for backend in backends:
    print(backend.say())


# backend_a = BackendTypePool.get('backend_a')
# backend_b = BackendTypePool.get('backend_b')

Metadata

Release files for ramos 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ramos 1.4.0
File Size Uploaded Provenance Actions
ramos-1.4.0.tar.gz 3.5 kB Without provenance Details for ramos-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ramos 1.4.0
File Interpreter ABI Platform Actions
ramos-1.4.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for ramos-1.4.0-py2.py3-none-any.whl

Total release size: 8.8 kB

Release files / ramos-1.4.0.tar.gz

Download URL ramos-1.4.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d8c8a6d990dc5278ee1553b88bb1f8663d53d8256361ee9b5e74beecc03e3ba3
BLAKE2b-256 checksum
How to use checksums
6f91b19d56327c8e73780194758cc833384991d312040fb324ed248182276063
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.15

Release files / ramos-1.4.0-py2.py3-none-any.whl

Download URL ramos-1.4.0-py2.py3-none-any.whl
Size 5.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9ed1b12996d412cfe607e9b97b57dded8870d1690059d5c559905b24c55f267e
BLAKE2b-256 checksum
How to use checksums
c7c8bc9ce84d59e507f33bdac8409138750ce9cfeab8e48a041360f331b5c29c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.15

Security for ramos 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page