Rfcx

Latest version: v0.2.8

Safety actively analyzes 666166 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

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 have `dest_path`, `stream_id`, `start_time`, `end_time`, `gain`, and `file_ext`

Deprecated functionality:

- `guardians()`: Get list of guardians from a sites - use `streams()` instead

- `guardianAudio()`: Get audio information list from specific guardian - use `streamSegments()` instead.

- `tags()`: Get tags information from RFCx - use `annotations()` instead.

- `downloadGuardianAudio()`: Download audio - use `downloadStreamSegments()` instead.

0.0.10

Bug fix:

- Handle parallel download audio `min_date` and `max_date` to available for datetime data type

0.0.9

New functionality:

- Parallel download audio from RFCx database
Example: `client.downloadGuardianAudio(dest_path='audios', guardian_id='8d5d6dc3b0eb', min_date=2020-08-15, max_date=2020-08-30, file_ext='opus', parallel=True)`

Bug fixes:
- Handle an http request error when server return error status

Documentation: https://rfcx.github.io/rfcx-sdk-python/

0.0.7

New functionality:
- Moved audio and data processing features to `rfcx-utils` (maintaining `rfcx` as the core with fewer dependencies)

Bug fixes:
- Solved `client.guardians()` failing due to invalid token -- user will need to delete their .rfcx_credentials file and authenticate again.

Documentation: https://rfcx.github.io/rfcx-sdk-python/

0.0.6

New functionality:
- Access token is refreshed if it is near expiration.
- Load an existing token from another path: `client.persisted_credentials_path = '/my/path/.rfcx_credentials'`

Bug fixes:
- `client.guardians()` previously only returned a maximum of 20 items (now returns all).
- Authentication now works with user accounts that have no accessible site information (e.g. RFCx admins)
- Removed unnecessary output from API calls

Documentation: https://rfcx.github.io/rfcx-sdk-python/

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.