mifiel.com API Client
Project description
# Mifiel Python Library
[![Coverage Status][coveralls-image]][coveralls-url]
[![Build Status][travis-image]][travis-url]
Pyton library for [Mifiel](https://www.mifiel.com) API.
Please read our [documentation](https://www.mifiel.com/api-docs/) for instructions on how to start using the API.
## Installation
```bash
pip install mifiel
```
## Usage
To start using the API you will need an APP_ID and a APP_SECRET which will be provided upon request (contact us at hola@mifiel.com).
You will first need to create an account in [mifiel.com](https://www.mifiel.com) since the APP_ID and APP_SECRET will be linked to your account.
### Document methods:
For now, the only methods available are **find** and **create**. Contributions are greatly appreciated.
- Find:
```python
from mifiel import Document, Client
client = Client(app_id='APP_ID', secret_key='APP_SECRET')
doc = Document.find(client, 'id')
document.original_hash
document.file
document.file_signed
# ...
```
- Create:
```python
from mifiel import Document, Client
client = Client(app_id='APP_ID', secret_key='APP_SECRET')
signatories = [
{ name: 'Signer 1', email: 'signer1@email.com', tax_id: 'AAA010101AAA' },
{ name: 'Signer 2', email: 'signer2@email.com', tax_id: 'AAA010102AAA' }
]
# Providde the SHA256 hash of the file you want to sign.
doc = Document.create(client, signatories, dhash='some-sha256-hash')
# Or just send the file and we'll take care of everything.
# We will store the file for you.
doc = Document.create(client, signatories, file='path/to/my/file.pdf')
```
## Development
### Install dependencies
```bash
pip install -r requirements.txt
```
## Test
Just clone the repo, install dependencies as you would in development and run `nose2` or `python setup.py test`
## Contributing
1. Fork it ( https://github.com/Mifiel/python-api-client/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
[coveralls-image]: https://coveralls.io/repos/github/Mifiel/python-api-client/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/Mifiel/python-api-client?branch=master
[travis-image]: https://travis-ci.org/Mifiel/python-api-client.svg?branch=master
[travis-url]: https://travis-ci.org/Mifiel/python-api-client
[![Coverage Status][coveralls-image]][coveralls-url]
[![Build Status][travis-image]][travis-url]
Pyton library for [Mifiel](https://www.mifiel.com) API.
Please read our [documentation](https://www.mifiel.com/api-docs/) for instructions on how to start using the API.
## Installation
```bash
pip install mifiel
```
## Usage
To start using the API you will need an APP_ID and a APP_SECRET which will be provided upon request (contact us at hola@mifiel.com).
You will first need to create an account in [mifiel.com](https://www.mifiel.com) since the APP_ID and APP_SECRET will be linked to your account.
### Document methods:
For now, the only methods available are **find** and **create**. Contributions are greatly appreciated.
- Find:
```python
from mifiel import Document, Client
client = Client(app_id='APP_ID', secret_key='APP_SECRET')
doc = Document.find(client, 'id')
document.original_hash
document.file
document.file_signed
# ...
```
- Create:
```python
from mifiel import Document, Client
client = Client(app_id='APP_ID', secret_key='APP_SECRET')
signatories = [
{ name: 'Signer 1', email: 'signer1@email.com', tax_id: 'AAA010101AAA' },
{ name: 'Signer 2', email: 'signer2@email.com', tax_id: 'AAA010102AAA' }
]
# Providde the SHA256 hash of the file you want to sign.
doc = Document.create(client, signatories, dhash='some-sha256-hash')
# Or just send the file and we'll take care of everything.
# We will store the file for you.
doc = Document.create(client, signatories, file='path/to/my/file.pdf')
```
## Development
### Install dependencies
```bash
pip install -r requirements.txt
```
## Test
Just clone the repo, install dependencies as you would in development and run `nose2` or `python setup.py test`
## Contributing
1. Fork it ( https://github.com/Mifiel/python-api-client/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
[coveralls-image]: https://coveralls.io/repos/github/Mifiel/python-api-client/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/Mifiel/python-api-client?branch=master
[travis-image]: https://travis-ci.org/Mifiel/python-api-client.svg?branch=master
[travis-url]: https://travis-ci.org/Mifiel/python-api-client
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file mifiel-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: mifiel-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b78ceb44f4a40cfec3c5bd501bf47809b85554da6c294d62a5a096e121fbe903 |
|
MD5 | dc9ea24363560b5321a3346725fa59d8 |
|
BLAKE2b-256 | 3dcf21285c1ef37f4ebddae44febc4db596bf73791c9ed050718ec493ba1a3ca |