Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

py-assembly-payments

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

py-assembly-payments

Python wrapper around the Assembly Payments API

  • 0.23.0
  • PyPI
  • Socket score

Maintainers
1

py-assembly-payments

Unofficial Python client for the Assembly Payments API

🚧 In Development 🚧

This package is still undergoing development and is pre-v1. It currently implements around 30% of the Assembly Payments API. You can keep up with the coverage here

Installation

pip install py-assembly-payments

Example

from assembly_payments.client import AssemblyClient

client = AssemblyClient(client_id=CLIENT_ID, client_secret=CLIENT_SECRET)

# List Users
client.users.list()

# Create User
user = client.users.create(
    id="your-user-id",
    first_name="Jane",
    last_name="Doe",
    email="jane.doe@example.com"
)

# Easy object access
print(user.first_name + user.last_name) # Jane Doe

Credentials

You can set your auth credentials in two ways:

  1. Through arguments to the client:
AssemblyClient(client_id=CLIENT_ID, client_secret=CLIENT_SECRET, scope=CLIENT_SCOPE, grant_type="client_credentials")
  1. Through environment variable which AssemblyClient will pick up from:
export ASSEMBLY_CLIENT_ID=my-client-id
export ASSEMBLY_CLIENT_SECRET=my-client-secret
export ASSEMBLY_SCOPE=my-scope

grant_type defaults to "client_credentials" and can only be controlled by an argument to AssemblyClient.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc