transaction-metadata 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- transaction_metadata-0.1.0/PKG-INFO +37 -0
- transaction_metadata-0.1.0/README.md +23 -0
- transaction_metadata-0.1.0/pyproject.toml +23 -0
- transaction_metadata-0.1.0/setup.cfg +24 -0
- transaction_metadata-0.1.0/tests/test_loader.py +10 -0
- transaction_metadata-0.1.0/transaction_metadata/transaction_metadata.egg-info/PKG-INFO +37 -0
- transaction_metadata-0.1.0/transaction_metadata/transaction_metadata.egg-info/SOURCES.txt +8 -0
- transaction_metadata-0.1.0/transaction_metadata/transaction_metadata.egg-info/dependency_links.txt +1 -0
- transaction_metadata-0.1.0/transaction_metadata/transaction_metadata.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: transaction-metadata
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A metadata package for transaction and user Avro schemas
|
|
5
|
+
Home-page: https://github.com/noob-coder-dev/transaction-metadata.git
|
|
6
|
+
Author: Manojit Roy
|
|
7
|
+
Author-email: Manojit Roy <roy.monojit982810@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: metadata,avro,schema,data-engineering
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# Transaction Metadata
|
|
16
|
+
|
|
17
|
+
This package provides versioned Avro schemas and configuration utilities
|
|
18
|
+
for simulated transaction and user data used in streaming pipelines
|
|
19
|
+
(Flink + Snowflake + Kafka).
|
|
20
|
+
|
|
21
|
+
### Structure
|
|
22
|
+
```
|
|
23
|
+
transaction_metadata/
|
|
24
|
+
├── schemas/
|
|
25
|
+
│ ├── transaction/v1/transaction.avsc
|
|
26
|
+
│ └── user/v1/user.avsc
|
|
27
|
+
├── loader.py
|
|
28
|
+
└── version.py
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Usage
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
from transaction_metadata.loader import get_schema
|
|
35
|
+
schema = get_schema(entity="transaction", version="v1")
|
|
36
|
+
print(schema)
|
|
37
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Transaction Metadata
|
|
2
|
+
|
|
3
|
+
This package provides versioned Avro schemas and configuration utilities
|
|
4
|
+
for simulated transaction and user data used in streaming pipelines
|
|
5
|
+
(Flink + Snowflake + Kafka).
|
|
6
|
+
|
|
7
|
+
### Structure
|
|
8
|
+
```
|
|
9
|
+
transaction_metadata/
|
|
10
|
+
├── schemas/
|
|
11
|
+
│ ├── transaction/v1/transaction.avsc
|
|
12
|
+
│ └── user/v1/user.avsc
|
|
13
|
+
├── loader.py
|
|
14
|
+
└── version.py
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Usage
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
from transaction_metadata.loader import get_schema
|
|
21
|
+
schema = get_schema(entity="transaction", version="v1")
|
|
22
|
+
print(schema)
|
|
23
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "transaction-metadata"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "A metadata package for transaction and user Avro schemas"
|
|
9
|
+
authors = [{ name = "Manojit Roy", email = "roy.monojit982810@gmail.com" }]
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.8"
|
|
12
|
+
license = { text = "MIT" }
|
|
13
|
+
keywords = ["metadata", "avro", "schema", "data-engineering"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Operating System :: OS Independent"
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
[tool.setuptools.packages.find]
|
|
20
|
+
where = ["transaction_metadata"]
|
|
21
|
+
|
|
22
|
+
[tool.setuptools.package-data]
|
|
23
|
+
"transaction_metadata" = ["schemas/**/*.avsc"]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[metadata]
|
|
2
|
+
name = transaction-metadata
|
|
3
|
+
version = 0.1.0
|
|
4
|
+
author = Manojit Roy
|
|
5
|
+
author_email = roy.monojit982810@gmail.com
|
|
6
|
+
description = A metadata package for transaction and user Avro schemas
|
|
7
|
+
long_description = file: README.md
|
|
8
|
+
long_description_content_type = text/markdown
|
|
9
|
+
url = https://github.com/noob-coder-dev/transaction-metadata.git
|
|
10
|
+
license = MIT
|
|
11
|
+
classifiers =
|
|
12
|
+
Programming Language :: Python :: 3
|
|
13
|
+
License :: OSI Approved :: MIT License
|
|
14
|
+
Operating System :: OS Independent
|
|
15
|
+
|
|
16
|
+
[options]
|
|
17
|
+
packages = find:
|
|
18
|
+
python_requires = >=3.8
|
|
19
|
+
include_package_data = True
|
|
20
|
+
|
|
21
|
+
[egg_info]
|
|
22
|
+
tag_build =
|
|
23
|
+
tag_date = 0
|
|
24
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
|
4
|
+
|
|
5
|
+
from transaction_metadata.loader import get_schema
|
|
6
|
+
|
|
7
|
+
def test_get_schema():
|
|
8
|
+
schema = get_schema("transaction", "v1")
|
|
9
|
+
assert schema["name"] == "Transaction"
|
|
10
|
+
assert any(f["name"] == "transaction_id" for f in schema["fields"])
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: transaction-metadata
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A metadata package for transaction and user Avro schemas
|
|
5
|
+
Home-page: https://github.com/noob-coder-dev/transaction-metadata.git
|
|
6
|
+
Author: Manojit Roy
|
|
7
|
+
Author-email: Manojit Roy <roy.monojit982810@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: metadata,avro,schema,data-engineering
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# Transaction Metadata
|
|
16
|
+
|
|
17
|
+
This package provides versioned Avro schemas and configuration utilities
|
|
18
|
+
for simulated transaction and user data used in streaming pipelines
|
|
19
|
+
(Flink + Snowflake + Kafka).
|
|
20
|
+
|
|
21
|
+
### Structure
|
|
22
|
+
```
|
|
23
|
+
transaction_metadata/
|
|
24
|
+
├── schemas/
|
|
25
|
+
│ ├── transaction/v1/transaction.avsc
|
|
26
|
+
│ └── user/v1/user.avsc
|
|
27
|
+
├── loader.py
|
|
28
|
+
└── version.py
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Usage
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
from transaction_metadata.loader import get_schema
|
|
35
|
+
schema = get_schema(entity="transaction", version="v1")
|
|
36
|
+
print(schema)
|
|
37
|
+
```
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
setup.cfg
|
|
4
|
+
tests/test_loader.py
|
|
5
|
+
transaction_metadata/transaction_metadata.egg-info/PKG-INFO
|
|
6
|
+
transaction_metadata/transaction_metadata.egg-info/SOURCES.txt
|
|
7
|
+
transaction_metadata/transaction_metadata.egg-info/dependency_links.txt
|
|
8
|
+
transaction_metadata/transaction_metadata.egg-info/top_level.txt
|
transaction_metadata-0.1.0/transaction_metadata/transaction_metadata.egg-info/dependency_links.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
schemas
|