Metadata-Version: 2.1
Name: ordway
Version: 0.5.2
Summary: A simple Ordway API wrapper.
Home-page: https://github.com/efnineio/ordway
Author: Geoffrey Doempke
Author-email: nicholas@logram.io
License: UNKNOWN
Project-URL: Documentation, https://github.com/efnineio/ordway/blob/master/README.md
Project-URL: Source, https://github.com/efnineio/ordway
Project-URL: Tracker, https://github.com/efnineio/ordway/issues
Project-URL: Changelog, https://github.com/efnineio/ordway/blob/master/CHANGES.md
Keywords: ordway api wrapper
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: testing
License-File: LICENSE

# Ordway

[![PyPi Version](https://img.shields.io/pypi/v/ordway.svg)](https://pypi.org/project/ordway)
[![Supported Versions](https://img.shields.io/pypi/pyversions/ordway.svg)](https://pypi.org/project/ordway)
[![MIT License](https://img.shields.io/pypi/l/ordway)](https://raw.githubusercontent.com/efnineio/ordway/v0.4.0/LICENSE)

Ordway is a simple API wrapper for [Ordway](https://www.ordwaylabs.com/). It's currently in pre-alpha stage, so be wary if you decide to use this in production. Please report any issues you encounter.

## Installation

The easiest way to install ordway is via [pip](https://pypi.python.org/pypi/pip).

```bash
pip install ordway
```

## Quickstart

```python
from ordway import OrdwayClient

ordway = OrdwayClient(
    email="EMAIL",
    user_token="USER_TOKEN",
    api_key="API_KEY",
    company="COMPANY",
)

for payment in ordway.payments.all():
    print(payment)

for subscription in ordway.subscriptions.list(
    page = 1, 
    filters = { "updated_date>": "2020-01-01" }, 
    sort="updated_date", 
    ascending=False
):
    print(subscription)

print(ordway.customers.get(id="CUST-01"))

ordway.customers.create(data={
    "name": "Jason",
    "description": "Hello",
    "contacts": [{
        "first_name": "Jason"
    }],
    ...
})
```

## Documentation

**TODO**


