realit-singer-encodings
Writes the Singer format from Python.
This is a fork of Singer's singer-encodings made for PipelineWise and Meltano.
Usage
Setup environment
This library depends on python3. We recommend using a virtualenv like this:
python3 -m venv ~/.virtualenvs/realit-singer-encodings
Installation
Next, install this library:
source ~/.virtualenvs/realit-singer-encodings/bin/activate
git clone http://github.com/s7clarke10/realit-singer-encodings
cd realit-singer-encodings
pip install .
Usage example
This package is used by tap-s3-csv. One of the key configurable items is the table field.
The table field consists of one or more objects, that describe how to find files and emit records. A more detailed (and unescaped) example below:
[
{
"search_prefix": "exports"
"search_pattern": "my_table\\/.*\\.csv",
"table_name": "my_table",
"key_properties": ["id"],
"date_overrides": ["created_at"],
"delimiter": ",",
"guess_types": true,
"string_overrides": ["field_1","field_2"],
"remove_character": "\""
},
...
]
The following specific settings influence the behaviour of the singer-encodings package.
- string_overrides: Specifies field names in the files that should be parsed as a string regardless of what was discovered.
- guess_types: (default
true) By default, column data types will be determined via scanning the first file in a table_spec. Set this tofalseto disable this and set all columns tostring. - remove_character: Specifies a character which can be removed from each line in the the file e.g.
"\""will remove all double-quotes. - encoding: The encoding to use to read these files from codecs -> Standard Encodings
Developer Resources
Initialize your Development Environment
pip install poetry
poetry install
Create and Run Tests
Create tests within the tests/ directory and
then run:
poetry run pytest
or
poetry run coverage run --parallel -m pytest
Continuous Integration
Run through the full suite of tests and linters by running
poetry run tox
These must pass in order for PR's to be merged.
License
Distributed under the Apache License Version 2.0
Metadata
Release files for realit-singer-encodings 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| realit_singer_encodings-2.1.1.tar.gz | 12.0 kB | Without provenance | Details for realit_singer_encodings-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| realit_singer_encodings-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for realit_singer_encodings-2.1.1-py3-none-any.whl |
Total release size: 24.9 kB
Release files / realit_singer_encodings-2.1.1.tar.gz
| Download URL | realit_singer_encodings-2.1.1.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c564f2403e2bc74c7df83f805faa6cb508ca620b41f787c62c6f0473e313974c
|
|
BLAKE2b-256 checksum How to use checksums |
9fb83dae8dc8715619846e7dd233a940da4bf4ccc1eab04c427c07caba461593
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Release files / realit_singer_encodings-2.1.1-py3-none-any.whl
| Download URL | realit_singer_encodings-2.1.1-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb813537b4660a59de0e3f9ad8086759c72e1a8bd4e69cafef8289f510e90e44
|
|
BLAKE2b-256 checksum How to use checksums |
c2040d9a50de0a9213d08cf3c46c62421a42434faa2ee6e11205ecab33b6fe6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Security for realit-singer-encodings 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.