You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

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


Maintainers
1

Readme

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc