Skip to main content

Lockstep Platform SDK for Python

Project description

Lockstep SDK For Python

PyPI

A financial service SDK for python for innovative accounting solutions providers.

Who are we?

Lockstep automates accounting workflows to improve your operational efficiency and cash flow. Accelerate payments through automated customer communications, enhanced collections activity management, and innovative forecasting and reporting.

Getting Started

Here's how to add the Lockstep python SDK to your project.

  1. Pip install the Lockstep API
 path\\to\\project\\file: pip install lockstep-sdk
  1. Obtain an API key for the Lockstep Platform API by visiting: API Key

  2. Creating LockstepAPI Client in your .py file

env = 'PASS_ENVIRONMENT_HERE'
client = LockstepApi(env)
client.with_api_key([INSERT_API_KEY])

if not client:
    print("ISSUE WITH CLIENT, NO API KEY OR WRONG ENVIRONMENT")
else:
    print(f"CLIENT WAS CREATED SUCCESSFULLY: {client}")
    return client
  1. Make a ping call to make sure you're connected https://developer.lockstep.io/reference/v1_status_retrievestatus
status_results = client.status.ping()
print(f"StatusResult: {status_results}")

You now have your API credentials and have successfully created your client.

How to Use (Basic Usage)

This example will show you how to call an API, using the Query Invoices API to retrieve a collection of invoices.

# Connect to Client
# Lockstep provides sandbox and production environments
env = 'sbx'
client = LockstepApi(env)

# Add your API key here
client.with_api_key([INSERT_API_KEY])

# Querying for the first 10 invoices sorted by invoice date
invoices = client.invoices.query_invoices(
            "invoiceDate",
            "Company",
            "invoiceDate asc",
            10,
            0)

print(invoices['records'])

Sample Project

Fetch Invoice Sample Python Project

Project details


Download files

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

Source Distribution

lockstep-sdk-2023.40.72.tar.gz (60.8 kB view details)

Uploaded Source

Built Distribution

lockstep_sdk-2023.40.72-py3-none-any.whl (192.5 kB view details)

Uploaded Python 3

File details

Details for the file lockstep-sdk-2023.40.72.tar.gz.

File metadata

  • Download URL: lockstep-sdk-2023.40.72.tar.gz
  • Upload date:
  • Size: 60.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for lockstep-sdk-2023.40.72.tar.gz
Algorithm Hash digest
SHA256 baf73f5204aeca744fc6fdfa60293aa2efaf82ebdd995fbab0509fb0ef32f2ae
MD5 81114aff914ce1d3acf7f091654a96d0
BLAKE2b-256 2cfb299f9dd1cb725f52e278ab92526cd0b16bd0c436214f1445e8e649ab178c

See more details on using hashes here.

File details

Details for the file lockstep_sdk-2023.40.72-py3-none-any.whl.

File metadata

File hashes

Hashes for lockstep_sdk-2023.40.72-py3-none-any.whl
Algorithm Hash digest
SHA256 def1ce7df0d35f2a71dcf300b95ff42a21671543ba345bf1e59271a05eb81da1
MD5 de66f3fb459f0e2cde12d5d8701f40d6
BLAKE2b-256 ed9afca4efd6afe1bdc236b0bae4755dcafc25e98659c423be31740bf5c5a5b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page