Releases: rfcx/rfcx-sdk-python
0.3.1
0.2.5
New features
- Added
RFCX_API_URL
environment variable to support alternative API environments
0.2.4
Modified functionality:
- Avoid using media API and switch to downloading single or ranges of segments/recordings
- Renamed
download_audio_files
todownload_segments
(breaking change) - Renamed
download_audio_file
todownload_segment
(breaking change)
- Renamed
- Can use datetime or string (in ISO9 format) as arguments on any timestamp fields
- Renamed confusing
only_public
argument toinclude_public
on getstreams
0.2.3
Modified functionality:
streams()
: Add ability to custom retrieve fieldsprojects()
: Add ability to custom retrieve fields
Bug fix:
- Fix
streams()
to not use only_public and only_delete as default
Documentation: https://rfcx.github.io/rfcx-sdk-python/
0.2.2
0.2.1
New functionality:
projects()
: Get project list
Modified functionality:
- Rename
authentication()
toauthenticate()
- Rename
download_file()
todownload_audio_file()
- Rename
download_file_segments()
todownload_audio_files()
streams()
: Add ability to get stream by name query
Bug fixes:
- Update stream segment to use new API endpoint
- Fix
download_audio_files()
not download audio properly
0.2.0
0.0.12
New functionality:
- Get a list of detections allow to filter by classifier id list
Example: client.detections(start="2020-12-01T00:00:00.000Z", end="2020-12-31T23:59:59.999Z", classifications=["chainsaw", "gunshot"], classifiers=[94,95], stream=["xxxxxx", "yyyyyy"], limit=50, offset=0)
0.0.11
New functionality:
-
Get a list of streams (all parameters are optional)
Example:client.streams(organizations=None, projects=None, created_by=None, keyword=None, is_public=True, is_deleted=False, limit=1000, offset=0)
-
Get audio information list from a specific stream
Example:client.stream_segments(stream="xxxxxx", start="2020-12-01T00:00:00.000Z", end="2020-12-31T23:59:59.999Z", limit=50, offset=0 )
-
Download audio on specific time range
Example:client.download_file_segments(dest_path="./audio", stream="xxxxxx", min_date="2020-12-01T00:00:00.000Z", max_date="2020-12-31T23:59:59.999Z", gain=1, file_ext="opus", parallel=True)
-
Get a list of annotations (from a given stream)
Example:client.annotations(start="2020-12-01T00:00:00.000Z", end="2020-12-31T23:59:59.999Z", classifications=["chainsaw", "gunshot"], stream="xxxxxx", limit=50, offset=0)
-
Get a list of detections
Example:client.detections(start="2020-12-01T00:00:00.000Z", end="2020-12-31T23:59:59.999Z", classifications=["chainsaw", "gunshot"], stream=["xxxxxx", "yyyyyy"], limit=50, offset=0)
-
Ingest a local audio to RFCx (to a given stream)
Example:client.ingest_file(stream="xxxxxx", filepath="example.wav", timestamp="2021-03-05T12:00:00.000Z")
Modified functionality:
download_file()
: update parameters to havedest_path
,stream_id
,start_time
,end_time
,gain
, andfile_ext
Deprecated functionality:
-
guardians()
: Get list of guardians from a sites - usestreams()
instead -
guardianAudio()
: Get audio information list from specific guardian - usestreamSegments()
instead. -
tags()
: Get tags information from RFCx - useannotations()
instead. -
downloadGuardianAudio()
: Download audio - usedownloadStreamSegments()
instead.