Skip to main content

YAP Python Library

The YAP Python library provides convenient access to the YAP API from applications written in the Python language.

Requirements

  • Python 2.7+ or Python 3.6+

Installing

It's an official version for Python

pip install --upgrade yap-sdk

Enjoy 🎉

Usage

The library needs to be configured with your account's secret key which is available in your [YAP Dashboard][api-keys]:

from yapsdk import Yap

service = Yap(api_key='...')

# detect faces on document
response = service.detect_faces(content='/9j/4AAQSkZJRgABAQEASABIA....')

# print that response
print(response.faces)

Example

List of examples for quickly start on your project.

Features File
Extract text text.py
Extract lines line.py
Extract table table.py
Get entities entities.py
Get dominant language dominant_language.py
Detect faces detect_faces.py
Compare faces compare_faces.py

Opening issues

If you encounter a bug with YAP, we would appreciate if you inform us about it. Before opening a new issue, please go through existing issues to find the solution right away if your problem was solved before.

Attach the following details if appropriate:

  • SDK
  • Python version
  • Environment and OS
  • Stack trace

The GitHub issues are intended for bug reports and feature requests. For quick help and questions on using the Yap SDK for Python, please use the resources listed within Getting Help section. The time of our support experts is rushingly flying but even so, they would like to help you in time, and therefore, will appreciate your help in applying for support reasonably by providing full details and excluding duplicated issues.

Contribute

Yap is the open source and we love contributions! If you have an idea for a great improvement or spy an issue you’re keen to fix, follow our Contributing Guide.

No contribution is too small – we encourage you to provide feedback and report issues.

Community support 🌍

For general help using Yap, please refer to the official Yap documentation. For additional help, you can use one of these channels to ask a question:

License

This SDK is distributed under Commerciale License.

Metadata

Release files for yapsdk 1.7.0

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

Source distribution (sdist)

Source distribution for yapsdk 1.7.0
File Size Uploaded Provenance
yapsdk-1.7.0.tar.gz 8.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for yapsdk 1.7.0
File Interpreter ABI Platform
yapsdk-1.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / yapsdk-1.7.0.tar.gz

Download URL yapsdk-1.7.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d0c33f798bb8957eb270c82d878b6094691a73b1ebeeb06b93f204daf7ae5a69
BLAKE2b-256 checksum
How to use checksums
78a7af89651cd3a9c11ea8f66d8fd868532d506f155b6c75cc977fb2bebc56ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / yapsdk-1.7.0-py3-none-any.whl

Download URL yapsdk-1.7.0-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b24fdde50b9d4f403de6495b07217f8827a82fb05a62230690f934d690087c95
BLAKE2b-256 checksum
How to use checksums
f8477a9597a17c761ac295075139b58352c60f940bf9a170ae054598cb58a1fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Security for yapsdk 1.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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