Skip to main content

Python API Client library for Mifiel.com

Project description

Coverage Status Build Status PyPI version

Pyton library for Mifiel API. Please read our documentation for instructions on how to start using the API.

Installation

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 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:

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:

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='test/fixtures/example.pdf')

doc.id # -> '7500e528-ac6f-4ad3-9afd-74487c11576a'
doc.id # -> '7500e528-ac6f-4ad3-9afd-74487c11576a'

Development

Install dependencies

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

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

mifiel-0.0.3.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file mifiel-0.0.3.tar.gz.

File metadata

  • Download URL: mifiel-0.0.3.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mifiel-0.0.3.tar.gz
Algorithm Hash digest
SHA256 323b24a7ce368571b29992a670392dddc1d71c783f0184a19633cb5a5ec50d4e
MD5 7a7c5cbceb6f649795de203b271a37d1
BLAKE2b-256 9d1c734d82c4d3c9ae3799f8b667b3fe5d8d12a07e35e660233e45cbb9348f40

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