Pyobjectify

Latest version: v0.1.1

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

Scan your dependencies

0.1.1

Description

The main interface method is `from_url(url, out_type=None)`. The user supplies a resource locator, which may be a local file or a static online resource. The library infers the data type of the resource, of which JSON, CSV, TSV, and XML are currently supported. The user can also specify a return data type and the library will try to comply, or will return the data in the most compatible data type. The supported conversions are listed below.

Supported types

Connectivity tyes

- Local files (_e.g._ `./relative/example.json`, `/absolute/path/example.json`)
- Online, static (_e.g._ `https://some.website/example.json`, `http://bit.ly/some-json-endpoint`)

For example, at the moment, a data stream from the Internet is not supported.

Resource (input) data types

- JSON
- CSV
- TSV
- XML

Supported conversions

- JSON → `dict`, `list`, `pandas.DataFrame`
- CSV → `list`
- TSV → `list`
- XML → `dict`

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.