Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dataflow_sdk-0.1.8-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

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

Hashes for dataflow_sdk-0.1.8.tar.gz
Algorithm Hash digest
SHA256 dd0fb9b00742fad2ad06f6924057106eed9f2c32354ff00a75b2e5fa7dfe2bbd
MD5 383d53080b555bd3d16a4f8c0b4ad74a
BLAKE2b-256 fad7879dc1787103de316509411c1abea83af1d415056b3bc5fa141ca7324857

See more details on using hashes here.

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

Hashes for dataflow_sdk-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 654ebc0cc8177424c8f6daea78c30fe368551da70f4ed66b4066ce5832ac5b7b
MD5 5ac28ec2f75922643f10175d6fc1e275
BLAKE2b-256 a5077eaa2307e9a65c3ea7ff50f2d679e0a59e7f5cd51d9dde33dc4336fa4496

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page