Releases: RavenPack/python-api
Version 1.1.6
Fixed
Fixed crash trying to get the occupations-taxonomy
and jobs-taxonomy
reference files:
from ravenpackapi import RPApi
api = RPApi(product="edge")
occupations = api.get_entity_type_reference("occupations-taxonomy")
occupations.write_to_file("occupations-reference.csv")
jobs = api.get_entity_type_reference("jobs-taxonomy")
jobs.write_to_file("jobs-reference.csv")
Version 1.1.5
Changed
Removed the dependency on the library retry
, which is unmaintained, and replaced it with tenacity
. This also removes the indirect dependency on py
(also unmaintained) which caused a few issues.
This change should be transparent (except for installing the new dependencies).
See details in issue #18
Version 1.1.4
Fixed
Fixed issue creating an Edge dataset without product attribute specified, but specifying the product in the RPApi
object:
from ravenpackapi import RPApi, Dataset
api = RPApi(api_key="YOUR_API_KEY", product="edge")
ds = api.create_dataset(
Dataset(
name="New Dataset",
filters={"entity_relevance": {"$gte": 90}},
)
)
Since the product is not specified in Dataset
's __init__
, the incorrect
product was being passed to the API, resulting in the message.
Version 1.1.3
Fixed
Handle a corner case in the entity-mapping endpoint where the API returns no errors but also no mapped entities
Version 1.1.2
Fixed
Fixed an issue installing the package, which affected the Version 1.1.1, specifically while doing python setup.py egg_info
.
Version 1.1.1
Removed
- Removed dependency on
future
#9
Fixed
Fixed bug with lazy loading that caused the wrong product (RPA
) being sent
sometimes when saving a dataset without modifying it.
To reproduce the issue:
from ravenpackapi import RPApi
api = RPApi(product="edge")
ds = api.get_dataset("SOME_DATASET_ID")
ds.save()
Note that this error is not always triggered and is not deterministic.
Version 1.1.0
New
Support for Anaconda
Version 1.0.60
Added
New flag to store the entity mapping data in memory, when using edge
. Use
with caution.
eref = api.get_entity_type_reference(entity_type, "full", file_date)
eref.store_in_memory = True
for entity in eref:
print(entity)
Version 1.0.59
Added
- New examples
Improved
- Script to check the connection (check_connection.py) also checks edge.
- Edge flatfiles can now be downloaded through the API, just like RPA
flatfiles - Old examples now work with edge as well.
Fixed
- Bug listing jobs
Version 1.0.58
Improved
EntityTypeReference
for Edge reference files won't keep the entire mapping in
memory anymore. This allows to grab the reference files and write them to file
(or iterate through them) but they can't be accessed as rp_entity_id mappings
anymore. For Edge only.