affinda


Nameaffinda JSON
Version 4.25.0 PyPI version JSON
download
home_pagehttps://github.com/affinda/affinda-python
SummaryClient library for the Affinda API
upload_time2024-10-01 07:56:03
maintainerAffinda
docs_urlNone
authorAffinda
requires_python>=3.6
licenseMIT
keywords affinda api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Client Library for Affinda Document Parser API

![affinda logo](https://api.affinda.com/static/documentation/affinda_logo_light.png)

[![pypi ver](https://img.shields.io/pypi/v/affinda)](https://pypi.org/project/affinda/)
[![pypi pyver](https://img.shields.io/pypi/pyversions/affinda)](https://pypi.org/affinda/)
[![pypi dlm](https://img.shields.io/pypi/dm/affinda)](https://pypi.org/project/affinda/)
[![license](https://img.shields.io/github/license/affinda/affinda-python)](https://choosealicense.com/licenses/mit/)

[![codestyle](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/affinda/affinda-python)

This is a python client for the Affinda document parsing API which wraps all available endpoints
and handles authentication and signing. You may also want to refer to the full
[API documentation](https://api.affinda.com/docs) for additional information.

## Installation

```shell
pip install affinda
```

## API Version Compatibility

The Affinda API is currently on `v3`, with breaking changes meant the release of new versions of the client library.
Please see below for which versions are compatible with which API version.

| Affinda API version | `affinda-python` versions |
| ------------------- | ------------------------- |
| v2                  | 0.1.0 - 3.x.x             |
| v3                  | \>= 4.x.x                 |

## Quickstart

If you don't have an API token, obtain one from [affinda.com](https://affinda.com/resume-parser/free-api-key/).

```python
from pathlib import Path
from pprint import pprint

from affinda import AffindaAPI, TokenCredential
from affinda.models import WorkspaceCreate, CollectionCreate

token = "REPLACE_API_TOKEN"
file_pth = Path("PATH_TO_DOCUMENT.pdf")

credential = TokenCredential(token=token)
client = AffindaAPI(credential=credential)

# First get the organisation, by default your first one will have free credits
my_organisation = client.get_all_organizations()[0]

# And within that organisation, create a workspace, for example for Recruitment:
workspace_body = WorkspaceCreate(
    organization=my_organisation.identifier,
    name="My Workspace",
)
recruitment_workspace = client.create_workspace(body=workspace_body)

# Finally, create a collection that will contain our uploaded documents, for example resumes, by selecting the
# appropriate extractor
collection_body = CollectionCreate(
    name="Resumes", workspace=recruitment_workspace.identifier, extractor="resume"
)
resume_collection = client.create_collection(collection_body)

# Now we can upload a resume for parsing
with open(file_pth, "rb") as f:
    resume = client.create_document(file=f, file_name=file_pth.name, collection=resume_collection.identifier)

pprint(resume.as_dict())
```

## Samples

Samples for all operations using the client can be [found here.](./docs/samples_python.md)

## API reference

-   [API operations can be found here](./docs/sync_operations.md)
-   [API models and objects](./docs/models.md)
-   [Exceptions](./docs/exceptions.md)

# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [4.25.0] - 2024-10-01
### Added
- Add document splitter endpoints

## [4.24.0] - 2024-09-10
### Added
- Allow filter tags by name
- Added enableValidationThreshold to collection and field objects

## [4.23.0] - 2024-07-08
### Added
- Ability to filter index by name
- Ability to set workspace for MappingDataSource

## [4.22.2] - 2024-05-03
### Removed
- Removed unnecessary models of InvoiceData fields

## [4.22.1] - 2024-05-03
### Fixed
- Fix invoice data deserialization

## [4.22.0] - 2024-04-24
### Added
- Added filter and sort options for mapping data source endpoint

## [4.21.0] - 2024-04-10
### Fixed
- Fix invoiceData annotation required fields to match underling text annotation

### Changed
- Reduce maximum limit from 300 to 100 and remove default value

## [4.20.0] - 2024-03-26
### Changed
- Use ruff instead of black to format code, run check and format on code

### Added
- Add AnnotationBatchUpdate endpoint

## [4.19.0] - 2024-03-07
### Added
- Add validation_results endpoints
- Add US1 region
- Add strict attribute to RegionBias
- Add hideReject, hideEditPages, hideRunOcr and hideReparse options to Organization validationToolConfig
- `compact` parameter for upload document endpoint

## [4.18.0] - 2024-01-31
### Added
- Add sourceEmailAddress to DocumentMeta model
- Add tablesBeta to InvoiceData model
- Add sourceEmailAddress to document meta

## [4.17.0] - 2024-01-16
### Added
- Added "website" data point type
- Add mapping and dataSource to the field endpoints
- Add list mapping data sources endpoint

### Removed
- Removed "cell" data point type

### Changed
- Add URL annotation type

## [4.16.0] - 2023-12-04
### Added
- Add data mapping
- Add dropNullEnums to Field
- Added AnnotationContentType
- Added show_custom_field_creation to Organization
- Introduce endpoints to deal with data sources that can be created by customers, and used to map data onto a picklist, or lookup values for downstream validation

## [4.15.0] - 2023-11-14
### Added
- Add PATCH /index/<name> endpoint
- Add user to Index object
- Add "compact" query parameter to GET /documents/<identifier> endpoint
- Add "compact" query parameter to POST /documents endpoint

## [4.14.0] - 2023-11-08
### Added
- Add `parent` field to `Annotation`

### Fixed
- Make `Annotation.rectangles` field non-nullable
- Make `Annotation.document` field required

### Changed
- Remove enum constraint from `ordering` on the `getAllDocuments` operation

## [4.13.0] - 2023-10-24
### Added
- Add display_enum_value config to Collection field config

### Changed
- Migrate display_enum_value from DataPoint to Collection field config

### Removed
- Remove display_enum_value from DataPoint

## [4.12.0] - 2023-10-19
### Added
- Add disableEditDocumentMetadata option to validation tool config
- Add field custom_identifier to DocumentMeta model
- Allow specifying custom_identifier when create/update document

### Deprecated
- Deprecate writing to identifier when creating/updating document

## [4.11.0] - 2023-10-03
### Added
- Add SOC group codes to classification

## [4.10.0] - 2023-09-21
### Added
- Allow creating workspace-scope webhook
- Add "document.rejected" webhook event

## [4.9.0] - 2023-07-26
### Added
- Allow create and enable/disable child fields in Collection.fieldsLayout

### Deprecated
- Deprecate `fields` in favor of `enabledChildFields` and `disabledChildFields` in Collection.fieldsLayout

## [4.8.1] - 2023-07-19
### Fixed
- Serialisation of Document to Invoice, Resume etc in async get_document()

## [4.8.0] - 2023-07-19
### Changed
- Make Field.slug nullable and not required

### Deprecated
- Deprecate Field.slug

### Added
- Support for custom base URL and http scheme in async client

## [4.7.2] - 2023-07-07
### Changed
- Set CustomFieldConfig default to 0.5

### Fixed
- Fixed serialisation of Document to Invoice, Resume etc in get_document()

## [4.7.1] - 2023-06-28
### Added
- Add xml response to api spec to GET /v3/documenets to match existing functionality

## [4.7.0] - 2023-06-27
### Added
- Allow create/update data point's `parent` and `displayEnumValue` property
- Allow explicitly set a document as low_priority

### Changed
- Make `slug` and `organization` required when creating data point

### Removed
- Remove data point's `similarTo` property

## [4.6.0] - 2023-06-16
### Added
- Add `tailoredExtractorRequested` to Collection
- Add endpoint for update resumes and JD data

## [4.5.1] - 2023-06-14
### Added
- Add `rawText` to invoice data

## [4.5.0] - 2023-06-09
### Added
- Ability to post/patch languages for resumes in v2
- Add `include_public` parameter to /data_points endpoint
- Add `base_extractor` parameter to collection creation endpoint

### Changed
- Make `extractor` a non required field (internal use)

## [4.4.0] - 2023-06-07
### Added
- Endpoints for add/remove tag for documents
- Identifier field in DocumentUpdate model
- Allow setting `region_bias` when uploading document
- rawText field to JobDescription Model
- Required fields for resthook subscriptions
- Add `fieldsLayout` to `Collection` schema

### Deprecated
- Deprecate `Collection.fields` in favor of `Collection.fieldsLayout`

## [4.3.5] - 2023-05-09
### Changed
- Nest line item table rows correctly.

## [4.3.4] - 2023-05-09
### Changed
- Nest line item table rows correctly.

## [4.3.3] - 2023-05-09
### Added
- Add `Organization.validationToolConfig` for configuration of the embeddable validation tool
- Phone number details to Resume Candidate info
- Add some filters to `GET /documents` endpoint: `failed`, `ready`, `validatable`
- Custom fields to Job Descriptions
- Add custom data to job description search results
- Add international_country_code to phone number details

### Changed
- Provide additional filters for data point choices, and allow data point choices to be specified for any existing text field.
- Allow custom resume fields to be nullable
- Allow custom job description fields to be nullable
- Make "pdf" property in SearchResults nullable

### Removed
- Remove `include_child` filter from `/data_points` endpoint

### Fixed
- Update python_requires to be PEP compliant

## [4.3.2] - 2023-04-20
### Changed
- rawText is now not nullable
- OccupationGroupSearchResult.children is now optional

### Fixed
- Allow rejectDuplicates to be null

## [4.3.1] - 2023-03-29
### Added
- Add `whitelistIngestAddresses` to Workspace

### Fixed
- Make search config action fields required

## [4.3.0] - 2023-03-28
### Added
- Adding group annotation content type
- Add rejectDuplicates setting to workspace
- Add `hideToolbar` to resume & JD search config
- Add ExtractorConfig object to Collection

## [4.2.0] - 2023-03-20
### Fixed
- fixed - Use OccupationGroupResult for v3 SearchAndMatch detail
- Fixed return type for InvoiceData.currencyCode

### Changed
- Don't require Field.slug

### Added
- Add redactedText field to ResumeData

## [4.1.0] - 2023-03-15
### Fixed
- Fixed type and path of data_point and data_point_choices
- Fixed missing data field on base Document type
- Fixed search and match return types
- fixed document error return types
- Ensure list endpoints have 'results' and 'count' properties required

### Changed
- Minor re-ordering of API spec paths
- Change Document API tag from Document API - Upload Documents to Document API - Document

## [4.0.1] - 2023-03-10
### Fixed
- Fixed resume search response object

## [4.0.0] - 2023-03-09
### Added
- Add resthook subscription endpoints
- Add py.typed marker file
- Add link to affinda help docs for resthook creation

### Changed
- Remove extractor's `id` field, use `identifier` field instead

### Removed
- Remove extractor's `id` field
- Removed v2 endpoints

## [2.1.0] - 2023-02-06
### Added
- Add document.collection.extractor.identifier to DocumentMeta
- Add cell to valid content types
- Add EU API server to api docs
- Add latitude and longtitude to Location
- Add expectedremuneration, jobtitle, language, skill and yearsexperience to AnnotationContentType
- re-add DataPoint.simlarTo
- Add `exclude` parameter to /documents query
- add ingest email to Workspace and Collection

### Changed
- Updated endpoints for old v2 and newer v3 to point to the correct places.
- Changed Document top level structure to more closely resemble api v2 with top level keys of meta, data and error
- ResumeSearchParamaters.resume, ResumeSearchParameters.jobdescription, JobDescriptionSearchParameters.resume, DataPoint.organization
- Update azure-core version in setup.cfg and pin setuptools as latest version doens't buld

### Fixed
- Fixed various nullable fields not being nullable, and vice versa

### Removed
- Master/child accounts endpoints

## [2.0.0] - 2023-01-13
### Added
- Added endpoints: Organization, Membership, Invitation, tags
- Added name, organization to DataPoint, change id to identifier
- Add new objects schemas Organization, OrganizationMembership, Invitation

### Changed
- Identifier instead of id as URL param
- Update data point filters
- Allow unlimited nesting in field config
- Change document state from "export" to "archive"

### Fixed
- Collection identifier should be nullable
- Don't paginate extractors endpoint
- Fix avatar uploads
- Allow writing resthookSignatureKey

## [1.9.0] - 2023-01-12
* Yanked as this was a breaking release, see newer release for more info

## [1.8.0] - 2023-01-12
### Changed
- Allow non TLS http requests

## [1.7.0] - 2023-01-10
### Added
- Add rectangles to Annotation, add position to referee, add actions to JobDescriptionSearchConfig

## [1.6.0] - 2023-01-09
### Fixed
- Bump version to force new release

## [1.5.1] - 2023-01-08
### Changed
- Allowing a few more fields in ResumeData to be null

## [1.5.0] - 2022-11-17
### Fixed
- Document meta pages without images should be nullable
- Small fixes for accreditiation and education return objects
- Various nullable fields in the API spec

### Security
- Bumped package versions for patch reasons

### Added
- Add reject_duplicates to document upload endpoint
- XML 404 response schema
- CustomData to resume search spec
- suggest skills and job titles endpoints

### Changed
- Update spec to allow XML content-type return from resumes, make totalYearsExperience nullable
- Allow additonalproperties for custom data upload (resumes) and search

## [1.4.2] - 2022-09-23
### Changed
- Update API spec to match API response.

## [1.4.1] - 2022-09-23
### Added
- Add job description search config and embed endpoints
- Update index endpoint with document type parameter

### Fixed
- Fix casing of some properties to match API response.

## [1.4.0] - 2022-08-25
### Changed
- Update modelerfour version to latest
- Update types of objects for some endpoints using AllOf attributes for better client library generation
- Changed and updated tag order to better match documentation needs
- Updated autorest client version

### Deprecated
- Depreciated resume_formats and reformatted_resumes endpoints

### Added
- Reverse match functionality - search job descriptions with a resume, or with a set of parameters.

## [1.3.1] - 2022-08-10
### Added
- Add search expression to 1v1 match

## [1.3.0] - 2022-07-27
### Added
- Add ability to find other candidates that have similar attributes to a resume
- Add an endpoint to get the matching score between a resume and a job description

## [1.2.0] - 2022-07-04
### Added
- add "tables" property to InvoiceData

## [1.1.0] - 2022-07-03
### Added
- Ability to update resume data in the search system
- New endpoint for creating and managing users within a master account

## [1.0.2] - 2022-05-07
### Fixed
- Make expiry time native date time

## [1.0.1] - 2022-05-01
### Added
- Add review URL in the invoice response that allows embedding of the Affinda Invoice Review UI

## [1.0.0] - 2022-04-28
### Added
- added confidence

### Changed
- changed strings to objects

## [0.4.1] - 2022-04-19
### Fixed
- Fixes bug in create_invoice when URL is not specified

## [0.4.0] - 2022-04-13
### Changed
- Update autorest depedencies

## [0.3.0] - 2022-04-06
### Added
- Resume search

## [0.2.2] - 2022-03-25
### Added
- Add iso 3166 country code to locations

## [0.2.1] - 2021-12-09
### Added
- Bump version

## [0.2.0] - 2021-10-06
### Added
- Invoices endpoint

### Removed
- Removed 'url' format from url strings in api spec

## [0.1.13] - 2021-10-05
### Changed
- Pin azure-core to 1.18.0

## [0.1.12] - 2021-10-05
### Changed
- Pin azure-core

## [0.1.11] - 2021-10-05
### Changed
- Pinning azure-core dependency due to incompatible changes in 1.19

## [0.1.10] - 2021-09-30
### Added
- Adding LinkedIn to ResumeData

### Changed
- Reformatted code with black
- Minor changes
- Very minor formatting changes

## [0.1.9] - 2021-09-08
### Added
- Profession in ResumeData model
- Unified Error models

## [0.1.8] - 2021-09-06
### Fixed
- wait=true in API spec

## [0.1.7] - 2021-09-05
### Fixed
- Code samples naming conversion

## [0.1.6] - 2021-09-05
### Changed
- Description of some endpoints to match updats in API spec
- Moved samples to their own [./docs/samples_python.md](./docs/samples_python.md) file

## [0.1.5] - 2021-08-25
### Added
- Added flake, editorconfig, tox.ini etc files to match best practices for existing Draftable/Affinda projects (thanks
- @ralish!)

## [0.1.4] - 2021-08-18
### Fixed
- Update README.md to fix install instructions

## [0.1.3] - 2021-08-18
### Fixed
- Update README.md to hard link to github hosted logo to fix display on PyPi

## [0.1.2] - 2021-08-18
* Initial release

The MIT License (MIT)

Copyright (c) Affinda

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/affinda/affinda-python",
    "name": "affinda",
    "maintainer": "Affinda",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "contact@affinda.com",
    "keywords": "affinda, api",
    "author": "Affinda",
    "author_email": "contact@affinda.com",
    "download_url": "https://files.pythonhosted.org/packages/dc/17/a109d77d74d9a11b2d8b41986b51b8cd68d77c54bf907c1e5eed32601cdf/affinda-4.25.0.tar.gz",
    "platform": null,
    "description": "# Python Client Library for Affinda Document Parser API\n\n![affinda logo](https://api.affinda.com/static/documentation/affinda_logo_light.png)\n\n[![pypi ver](https://img.shields.io/pypi/v/affinda)](https://pypi.org/project/affinda/)\n[![pypi pyver](https://img.shields.io/pypi/pyversions/affinda)](https://pypi.org/affinda/)\n[![pypi dlm](https://img.shields.io/pypi/dm/affinda)](https://pypi.org/project/affinda/)\n[![license](https://img.shields.io/github/license/affinda/affinda-python)](https://choosealicense.com/licenses/mit/)\n\n[![codestyle](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/affinda/affinda-python)\n\nThis is a python client for the Affinda document parsing API which wraps all available endpoints\nand handles authentication and signing. You may also want to refer to the full\n[API documentation](https://api.affinda.com/docs) for additional information.\n\n## Installation\n\n```shell\npip install affinda\n```\n\n## API Version Compatibility\n\nThe Affinda API is currently on `v3`, with breaking changes meant the release of new versions of the client library.\nPlease see below for which versions are compatible with which API version.\n\n| Affinda API version | `affinda-python` versions |\n| ------------------- | ------------------------- |\n| v2                  | 0.1.0 - 3.x.x             |\n| v3                  | \\>= 4.x.x                 |\n\n## Quickstart\n\nIf you don't have an API token, obtain one from [affinda.com](https://affinda.com/resume-parser/free-api-key/).\n\n```python\nfrom pathlib import Path\nfrom pprint import pprint\n\nfrom affinda import AffindaAPI, TokenCredential\nfrom affinda.models import WorkspaceCreate, CollectionCreate\n\ntoken = \"REPLACE_API_TOKEN\"\nfile_pth = Path(\"PATH_TO_DOCUMENT.pdf\")\n\ncredential = TokenCredential(token=token)\nclient = AffindaAPI(credential=credential)\n\n# First get the organisation, by default your first one will have free credits\nmy_organisation = client.get_all_organizations()[0]\n\n# And within that organisation, create a workspace, for example for Recruitment:\nworkspace_body = WorkspaceCreate(\n    organization=my_organisation.identifier,\n    name=\"My Workspace\",\n)\nrecruitment_workspace = client.create_workspace(body=workspace_body)\n\n# Finally, create a collection that will contain our uploaded documents, for example resumes, by selecting the\n# appropriate extractor\ncollection_body = CollectionCreate(\n    name=\"Resumes\", workspace=recruitment_workspace.identifier, extractor=\"resume\"\n)\nresume_collection = client.create_collection(collection_body)\n\n# Now we can upload a resume for parsing\nwith open(file_pth, \"rb\") as f:\n    resume = client.create_document(file=f, file_name=file_pth.name, collection=resume_collection.identifier)\n\npprint(resume.as_dict())\n```\n\n## Samples\n\nSamples for all operations using the client can be [found here.](./docs/samples_python.md)\n\n## API reference\n\n-   [API operations can be found here](./docs/sync_operations.md)\n-   [API models and objects](./docs/models.md)\n-   [Exceptions](./docs/exceptions.md)\n\n# Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## [Unreleased]\n\n## [4.25.0] - 2024-10-01\n### Added\n- Add document splitter endpoints\n\n## [4.24.0] - 2024-09-10\n### Added\n- Allow filter tags by name\n- Added enableValidationThreshold to collection and field objects\n\n## [4.23.0] - 2024-07-08\n### Added\n- Ability to filter index by name\n- Ability to set workspace for MappingDataSource\n\n## [4.22.2] - 2024-05-03\n### Removed\n- Removed unnecessary models of InvoiceData fields\n\n## [4.22.1] - 2024-05-03\n### Fixed\n- Fix invoice data deserialization\n\n## [4.22.0] - 2024-04-24\n### Added\n- Added filter and sort options for mapping data source endpoint\n\n## [4.21.0] - 2024-04-10\n### Fixed\n- Fix invoiceData annotation required fields to match underling text annotation\n\n### Changed\n- Reduce maximum limit from 300 to 100 and remove default value\n\n## [4.20.0] - 2024-03-26\n### Changed\n- Use ruff instead of black to format code, run check and format on code\n\n### Added\n- Add AnnotationBatchUpdate endpoint\n\n## [4.19.0] - 2024-03-07\n### Added\n- Add validation_results endpoints\n- Add US1 region\n- Add strict attribute to RegionBias\n- Add hideReject, hideEditPages, hideRunOcr and hideReparse options to Organization validationToolConfig\n- `compact` parameter for upload document endpoint\n\n## [4.18.0] - 2024-01-31\n### Added\n- Add sourceEmailAddress to DocumentMeta model\n- Add tablesBeta to InvoiceData model\n- Add sourceEmailAddress to document meta\n\n## [4.17.0] - 2024-01-16\n### Added\n- Added \"website\" data point type\n- Add mapping and dataSource to the field endpoints\n- Add list mapping data sources endpoint\n\n### Removed\n- Removed \"cell\" data point type\n\n### Changed\n- Add URL annotation type\n\n## [4.16.0] - 2023-12-04\n### Added\n- Add data mapping\n- Add dropNullEnums to Field\n- Added AnnotationContentType\n- Added show_custom_field_creation to Organization\n- Introduce endpoints to deal with data sources that can be created by customers, and used to map data onto a picklist, or lookup values for downstream validation\n\n## [4.15.0] - 2023-11-14\n### Added\n- Add PATCH /index/<name> endpoint\n- Add user to Index object\n- Add \"compact\" query parameter to GET /documents/<identifier> endpoint\n- Add \"compact\" query parameter to POST /documents endpoint\n\n## [4.14.0] - 2023-11-08\n### Added\n- Add `parent` field to `Annotation`\n\n### Fixed\n- Make `Annotation.rectangles` field non-nullable\n- Make `Annotation.document` field required\n\n### Changed\n- Remove enum constraint from `ordering` on the `getAllDocuments` operation\n\n## [4.13.0] - 2023-10-24\n### Added\n- Add display_enum_value config to Collection field config\n\n### Changed\n- Migrate display_enum_value from DataPoint to Collection field config\n\n### Removed\n- Remove display_enum_value from DataPoint\n\n## [4.12.0] - 2023-10-19\n### Added\n- Add disableEditDocumentMetadata option to validation tool config\n- Add field custom_identifier to DocumentMeta model\n- Allow specifying custom_identifier when create/update document\n\n### Deprecated\n- Deprecate writing to identifier when creating/updating document\n\n## [4.11.0] - 2023-10-03\n### Added\n- Add SOC group codes to classification\n\n## [4.10.0] - 2023-09-21\n### Added\n- Allow creating workspace-scope webhook\n- Add \"document.rejected\" webhook event\n\n## [4.9.0] - 2023-07-26\n### Added\n- Allow create and enable/disable child fields in Collection.fieldsLayout\n\n### Deprecated\n- Deprecate `fields` in favor of `enabledChildFields` and `disabledChildFields` in Collection.fieldsLayout\n\n## [4.8.1] - 2023-07-19\n### Fixed\n- Serialisation of Document to Invoice, Resume etc in async get_document()\n\n## [4.8.0] - 2023-07-19\n### Changed\n- Make Field.slug nullable and not required\n\n### Deprecated\n- Deprecate Field.slug\n\n### Added\n- Support for custom base URL and http scheme in async client\n\n## [4.7.2] - 2023-07-07\n### Changed\n- Set CustomFieldConfig default to 0.5\n\n### Fixed\n- Fixed serialisation of Document to Invoice, Resume etc in get_document()\n\n## [4.7.1] - 2023-06-28\n### Added\n- Add xml response to api spec to GET /v3/documenets to match existing functionality\n\n## [4.7.0] - 2023-06-27\n### Added\n- Allow create/update data point's `parent` and `displayEnumValue` property\n- Allow explicitly set a document as low_priority\n\n### Changed\n- Make `slug` and `organization` required when creating data point\n\n### Removed\n- Remove data point's `similarTo` property\n\n## [4.6.0] - 2023-06-16\n### Added\n- Add `tailoredExtractorRequested` to Collection\n- Add endpoint for update resumes and JD data\n\n## [4.5.1] - 2023-06-14\n### Added\n- Add `rawText` to invoice data\n\n## [4.5.0] - 2023-06-09\n### Added\n- Ability to post/patch languages for resumes in v2\n- Add `include_public` parameter to /data_points endpoint\n- Add `base_extractor` parameter to collection creation endpoint\n\n### Changed\n- Make `extractor` a non required field (internal use)\n\n## [4.4.0] - 2023-06-07\n### Added\n- Endpoints for add/remove tag for documents\n- Identifier field in DocumentUpdate model\n- Allow setting `region_bias` when uploading document\n- rawText field to JobDescription Model\n- Required fields for resthook subscriptions\n- Add `fieldsLayout` to `Collection` schema\n\n### Deprecated\n- Deprecate `Collection.fields` in favor of `Collection.fieldsLayout`\n\n## [4.3.5] - 2023-05-09\n### Changed\n- Nest line item table rows correctly.\n\n## [4.3.4] - 2023-05-09\n### Changed\n- Nest line item table rows correctly.\n\n## [4.3.3] - 2023-05-09\n### Added\n- Add `Organization.validationToolConfig` for configuration of the embeddable validation tool\n- Phone number details to Resume Candidate info\n- Add some filters to `GET /documents` endpoint: `failed`, `ready`, `validatable`\n- Custom fields to Job Descriptions\n- Add custom data to job description search results\n- Add international_country_code to phone number details\n\n### Changed\n- Provide additional filters for data point choices, and allow data point choices to be specified for any existing text field.\n- Allow custom resume fields to be nullable\n- Allow custom job description fields to be nullable\n- Make \"pdf\" property in SearchResults nullable\n\n### Removed\n- Remove `include_child` filter from `/data_points` endpoint\n\n### Fixed\n- Update python_requires to be PEP compliant\n\n## [4.3.2] - 2023-04-20\n### Changed\n- rawText is now not nullable\n- OccupationGroupSearchResult.children is now optional\n\n### Fixed\n- Allow rejectDuplicates to be null\n\n## [4.3.1] - 2023-03-29\n### Added\n- Add `whitelistIngestAddresses` to Workspace\n\n### Fixed\n- Make search config action fields required\n\n## [4.3.0] - 2023-03-28\n### Added\n- Adding group annotation content type\n- Add rejectDuplicates setting to workspace\n- Add `hideToolbar` to resume & JD search config\n- Add ExtractorConfig object to Collection\n\n## [4.2.0] - 2023-03-20\n### Fixed\n- fixed - Use OccupationGroupResult for v3 SearchAndMatch detail\n- Fixed return type for InvoiceData.currencyCode\n\n### Changed\n- Don't require Field.slug\n\n### Added\n- Add redactedText field to ResumeData\n\n## [4.1.0] - 2023-03-15\n### Fixed\n- Fixed type and path of data_point and data_point_choices\n- Fixed missing data field on base Document type\n- Fixed search and match return types\n- fixed document error return types\n- Ensure list endpoints have 'results' and 'count' properties required\n\n### Changed\n- Minor re-ordering of API spec paths\n- Change Document API tag from Document API - Upload Documents to Document API - Document\n\n## [4.0.1] - 2023-03-10\n### Fixed\n- Fixed resume search response object\n\n## [4.0.0] - 2023-03-09\n### Added\n- Add resthook subscription endpoints\n- Add py.typed marker file\n- Add link to affinda help docs for resthook creation\n\n### Changed\n- Remove extractor's `id` field, use `identifier` field instead\n\n### Removed\n- Remove extractor's `id` field\n- Removed v2 endpoints\n\n## [2.1.0] - 2023-02-06\n### Added\n- Add document.collection.extractor.identifier to DocumentMeta\n- Add cell to valid content types\n- Add EU API server to api docs\n- Add latitude and longtitude to Location\n- Add expectedremuneration, jobtitle, language, skill and yearsexperience to AnnotationContentType\n- re-add DataPoint.simlarTo\n- Add `exclude` parameter to /documents query\n- add ingest email to Workspace and Collection\n\n### Changed\n- Updated endpoints for old v2 and newer v3 to point to the correct places.\n- Changed Document top level structure to more closely resemble api v2 with top level keys of meta, data and error\n- ResumeSearchParamaters.resume, ResumeSearchParameters.jobdescription, JobDescriptionSearchParameters.resume, DataPoint.organization\n- Update azure-core version in setup.cfg and pin setuptools as latest version doens't buld\n\n### Fixed\n- Fixed various nullable fields not being nullable, and vice versa\n\n### Removed\n- Master/child accounts endpoints\n\n## [2.0.0] - 2023-01-13\n### Added\n- Added endpoints: Organization, Membership, Invitation, tags\n- Added name, organization to DataPoint, change id to identifier\n- Add new objects schemas Organization, OrganizationMembership, Invitation\n\n### Changed\n- Identifier instead of id as URL param\n- Update data point filters\n- Allow unlimited nesting in field config\n- Change document state from \"export\" to \"archive\"\n\n### Fixed\n- Collection identifier should be nullable\n- Don't paginate extractors endpoint\n- Fix avatar uploads\n- Allow writing resthookSignatureKey\n\n## [1.9.0] - 2023-01-12\n* Yanked as this was a breaking release, see newer release for more info\n\n## [1.8.0] - 2023-01-12\n### Changed\n- Allow non TLS http requests\n\n## [1.7.0] - 2023-01-10\n### Added\n- Add rectangles to Annotation, add position to referee, add actions to JobDescriptionSearchConfig\n\n## [1.6.0] - 2023-01-09\n### Fixed\n- Bump version to force new release\n\n## [1.5.1] - 2023-01-08\n### Changed\n- Allowing a few more fields in ResumeData to be null\n\n## [1.5.0] - 2022-11-17\n### Fixed\n- Document meta pages without images should be nullable\n- Small fixes for accreditiation and education return objects\n- Various nullable fields in the API spec\n\n### Security\n- Bumped package versions for patch reasons\n\n### Added\n- Add reject_duplicates to document upload endpoint\n- XML 404 response schema\n- CustomData to resume search spec\n- suggest skills and job titles endpoints\n\n### Changed\n- Update spec to allow XML content-type return from resumes, make totalYearsExperience nullable\n- Allow additonalproperties for custom data upload (resumes) and search\n\n## [1.4.2] - 2022-09-23\n### Changed\n- Update API spec to match API response.\n\n## [1.4.1] - 2022-09-23\n### Added\n- Add job description search config and embed endpoints\n- Update index endpoint with document type parameter\n\n### Fixed\n- Fix casing of some properties to match API response.\n\n## [1.4.0] - 2022-08-25\n### Changed\n- Update modelerfour version to latest\n- Update types of objects for some endpoints using AllOf attributes for better client library generation\n- Changed and updated tag order to better match documentation needs\n- Updated autorest client version\n\n### Deprecated\n- Depreciated resume_formats and reformatted_resumes endpoints\n\n### Added\n- Reverse match functionality - search job descriptions with a resume, or with a set of parameters.\n\n## [1.3.1] - 2022-08-10\n### Added\n- Add search expression to 1v1 match\n\n## [1.3.0] - 2022-07-27\n### Added\n- Add ability to find other candidates that have similar attributes to a resume\n- Add an endpoint to get the matching score between a resume and a job description\n\n## [1.2.0] - 2022-07-04\n### Added\n- add \"tables\" property to InvoiceData\n\n## [1.1.0] - 2022-07-03\n### Added\n- Ability to update resume data in the search system\n- New endpoint for creating and managing users within a master account\n\n## [1.0.2] - 2022-05-07\n### Fixed\n- Make expiry time native date time\n\n## [1.0.1] - 2022-05-01\n### Added\n- Add review URL in the invoice response that allows embedding of the Affinda Invoice Review UI\n\n## [1.0.0] - 2022-04-28\n### Added\n- added confidence\n\n### Changed\n- changed strings to objects\n\n## [0.4.1] - 2022-04-19\n### Fixed\n- Fixes bug in create_invoice when URL is not specified\n\n## [0.4.0] - 2022-04-13\n### Changed\n- Update autorest depedencies\n\n## [0.3.0] - 2022-04-06\n### Added\n- Resume search\n\n## [0.2.2] - 2022-03-25\n### Added\n- Add iso 3166 country code to locations\n\n## [0.2.1] - 2021-12-09\n### Added\n- Bump version\n\n## [0.2.0] - 2021-10-06\n### Added\n- Invoices endpoint\n\n### Removed\n- Removed 'url' format from url strings in api spec\n\n## [0.1.13] - 2021-10-05\n### Changed\n- Pin azure-core to 1.18.0\n\n## [0.1.12] - 2021-10-05\n### Changed\n- Pin azure-core\n\n## [0.1.11] - 2021-10-05\n### Changed\n- Pinning azure-core dependency due to incompatible changes in 1.19\n\n## [0.1.10] - 2021-09-30\n### Added\n- Adding LinkedIn to ResumeData\n\n### Changed\n- Reformatted code with black\n- Minor changes\n- Very minor formatting changes\n\n## [0.1.9] - 2021-09-08\n### Added\n- Profession in ResumeData model\n- Unified Error models\n\n## [0.1.8] - 2021-09-06\n### Fixed\n- wait=true in API spec\n\n## [0.1.7] - 2021-09-05\n### Fixed\n- Code samples naming conversion\n\n## [0.1.6] - 2021-09-05\n### Changed\n- Description of some endpoints to match updats in API spec\n- Moved samples to their own [./docs/samples_python.md](./docs/samples_python.md) file\n\n## [0.1.5] - 2021-08-25\n### Added\n- Added flake, editorconfig, tox.ini etc files to match best practices for existing Draftable/Affinda projects (thanks\n- @ralish!)\n\n## [0.1.4] - 2021-08-18\n### Fixed\n- Update README.md to fix install instructions\n\n## [0.1.3] - 2021-08-18\n### Fixed\n- Update README.md to hard link to github hosted logo to fix display on PyPi\n\n## [0.1.2] - 2021-08-18\n* Initial release\n\nThe MIT License (MIT)\n\nCopyright (c) Affinda\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Client library for the Affinda API",
    "version": "4.25.0",
    "project_urls": {
        "Changelog": "https://github.com/affinda/affinda-python/blob/stable/CHANGELOG.md",
        "Documentation": "https://github.com/affinda/affinda-python/blob/stable/README.md",
        "Homepage": "https://github.com/affinda/affinda-python",
        "Source": "https://github.com/affinda/affinda-python",
        "Tracker": "https://github.com/affinda/affinda-python/issues"
    },
    "split_keywords": [
        "affinda",
        " api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0d5e31e3ff5e3d37809e499daac2f6e89c16ecf9eb92772bb8d9f88697efa38",
                "md5": "eea8260f60d7072699ff35a3559dd581",
                "sha256": "94e12a43c5987024b6cb7dcfb9f905cf09ed0bdd79a6598ce066111e5f503897"
            },
            "downloads": -1,
            "filename": "affinda-4.25.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eea8260f60d7072699ff35a3559dd581",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 234663,
            "upload_time": "2024-10-01T07:55:59",
            "upload_time_iso_8601": "2024-10-01T07:55:59.871371Z",
            "url": "https://files.pythonhosted.org/packages/f0/d5/e31e3ff5e3d37809e499daac2f6e89c16ecf9eb92772bb8d9f88697efa38/affinda-4.25.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc17a109d77d74d9a11b2d8b41986b51b8cd68d77c54bf907c1e5eed32601cdf",
                "md5": "4e6155957661d2c72660ce5dd4677172",
                "sha256": "6c10d22c5e3ce61487aade809fb1650f11da441532413c66f97b991af2db39a3"
            },
            "downloads": -1,
            "filename": "affinda-4.25.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4e6155957661d2c72660ce5dd4677172",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 298331,
            "upload_time": "2024-10-01T07:56:03",
            "upload_time_iso_8601": "2024-10-01T07:56:03.078561Z",
            "url": "https://files.pythonhosted.org/packages/dc/17/a109d77d74d9a11b2d8b41986b51b8cd68d77c54bf907c1e5eed32601cdf/affinda-4.25.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-01 07:56:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "affinda",
    "github_project": "affinda-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "affinda"
}
        
Elapsed time: 0.74510s