No project description provided
Project description
dataflow-sdk
Example
from datetime import datetime
from dataflow_sdk import save_items, Record
from dataflow_sdk.entity.model import SinkType
result = {
'name': 'xiaoming',
"age": 25,
"time": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
"hello": "world",
"world": 1121211
}
records = [Record(
parent_url="https://www.json.cn",
sink_type=SinkType.ITEM,
store_key=f"https://www.json.cn{x}/",
data=result,
metadata={"name": "gage"},
) for x in range(10)]
save_items('77963b7a931377ad4ab5ad6a9cd718aa', records)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dataflow_sdk-0.1.8.tar.gz
(7.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dataflow_sdk-0.1.8.tar.gz.
File metadata
- Download URL: dataflow_sdk-0.1.8.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.18 Linux/4.4.0-22621-Microsoft
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd0fb9b00742fad2ad06f6924057106eed9f2c32354ff00a75b2e5fa7dfe2bbd
|
|
| MD5 |
383d53080b555bd3d16a4f8c0b4ad74a
|
|
| BLAKE2b-256 |
fad7879dc1787103de316509411c1abea83af1d415056b3bc5fa141ca7324857
|
File details
Details for the file dataflow_sdk-0.1.8-py3-none-any.whl.
File metadata
- Download URL: dataflow_sdk-0.1.8-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.18 Linux/4.4.0-22621-Microsoft
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
654ebc0cc8177424c8f6daea78c30fe368551da70f4ed66b4066ce5832ac5b7b
|
|
| MD5 |
5ac28ec2f75922643f10175d6fc1e275
|
|
| BLAKE2b-256 |
a5077eaa2307e9a65c3ea7ff50f2d679e0a59e7f5cd51d9dde33dc4336fa4496
|