avroSchemaToCsvConvertor-0.1.3
توضیحات
Convert Avro schema to CSV.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | avroSchemaToCsvConvertor-0.1.3 |
| نام | avroSchemaToCsvConvertor |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nalin Das |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/avroSchemaToCsvConvertor/ |
| مجوز | - |
# avroSchemaToCsvConvertor
[](https://github.com/nalindas9/avro-schema-to-csv/blob/master/LICENSE)
avroSchemaToCsvConvertor is a utility to convert from Avro schema to CSV.
## Dependencies
- avro-python3==1.9.1
- pycodestyle==2.8.0
## How to Run
1. Import avroSchemaToCsv
2. Use function as so - `avroSchemaToCsv.avscToCsv(file=<path to .avsc Avro Schema files>)`
## Current Limitations
In the Avro Schema file (.avsc), the format should be like this -
`
{
"type": "record",
"name": "SampleRecord",
"namespace": "com.example.avro",
"doc": "An autonomous vehicle (AV) debug record.",
"fields": [
{
"name": "id",
"doc": "The unique identifier for the record.",
"type": "int"
},
{
"name": "timestamp",
"doc": "Timestamp (datetime) of the record.",
"type": "long"
}
]
}
`
نحوه نصب
نصب پکیج whl avroSchemaToCsvConvertor-0.1.3:
pip install avroSchemaToCsvConvertor-0.1.3.whl
نصب پکیج tar.gz avroSchemaToCsvConvertor-0.1.3:
pip install avroSchemaToCsvConvertor-0.1.3.tar.gz