Skip to main content

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

Metadata

Release files for lockstep-sdk 2023.40.72

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

Source distribution (sdist)

Source distribution for lockstep-sdk 2023.40.72
File Size Uploaded
lockstep-sdk-2023.40.72.tar.gz 60.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lockstep-sdk 2023.40.72
File Interpreter ABI Platform
lockstep_sdk-2023.40.72-py3-none-any.whl Python 3 none any Details

Total release size: 253.3 kB

Release files / lockstep-sdk-2023.40.72.tar.gz

Download URL lockstep-sdk-2023.40.72.tar.gz
Size 60.8 kB
Tags Source
SHA-256 checksum
How to use checksums
baf73f5204aeca744fc6fdfa60293aa2efaf82ebdd995fbab0509fb0ef32f2ae
BLAKE2b-256 checksum
How to use checksums
2cfb299f9dd1cb725f52e278ab92526cd0b16bd0c436214f1445e8e649ab178c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / lockstep_sdk-2023.40.72-py3-none-any.whl

Download URL lockstep_sdk-2023.40.72-py3-none-any.whl
Size 192.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
def1ce7df0d35f2a71dcf300b95ff42a21671543ba345bf1e59271a05eb81da1
BLAKE2b-256 checksum
How to use checksums
ed9afca4efd6afe1bdc236b0bae4755dcafc25e98659c423be31740bf5c5a5b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18
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