Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Stripe dependency for Nameko

Project description

nameko-stripe

Stripe dependency for Nameko

Requirements

Python 3.4 - 3.7: Other versions may work but not supported.

Installation

pip install nameko-stripe

Usage

from nameko.rpc import rpc
from nameko_stripe import Stripe


class MyService(object):
    name = "my_service"

    stripe = Stripe()

    @rpc
    def list_charges(self):
        return self.stripe.Charge.list()

Setup

Simply add your api_key and log level into your config.yaml:

AMQP_URI: 'amqp://guest:guest@localhost'
...

STRIPE:
  api_key: abc123
  log_level: info

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nameko-stripe, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size nameko_stripe-0.1.3-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size nameko-stripe-0.1.3.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page