Skip to content

SynapseFI/SynapsePy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SynapseFI Python Library

PyPI PyPI - Python Version PyPI - Status

Python wrapper for SynapseFI API

Code Example

Refer to samples.md and our API documentation for examples.

Installation

$ pip install synapsepy

Clone repo

$ git clone https://github.com/SynapseFI/SynapsePy.git

Install requirements

$ cd SynapsePy
$ pip install -r requirements.txt

USAGE

Import
import synapsepy

Development

Package Deployment

1. Install Requirements
$ pip install twine
2. Setup Source Distribution

Update version number in setup.py:

setup(
	name='synapsepy',
	...
	version='0.0.15' # NEW VERSION NUMBER GOES HERE
	...
)

Create the source distribution by running setup.py using the following command:

$ python setup.py sdist
3. Upload Distribution

Replace {{VERSION NUMBER}} with the new version number in the following command then run:

$ twine upload dist/synapsepy-{{VERSION NUMBER}}.tar.gz

Testing

Run the following command from the root package directory

$ python -m unittest discover -s synapsepy.tests -p '*tests.py'