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.6.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.6-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file dataflow_sdk-0.1.6.tar.gz.

File metadata

  • Download URL: dataflow_sdk-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 4227d34a118ac3519dd4554e2605a62552d869cd1add380929049304c643ffc8
MD5 4e3dfd914bfa912680c9a5f233fa6ebb
BLAKE2b-256 07c4875637a2ebb041852a2cec006812a557a47bba6632df70107ee3551c289b

See more details on using hashes here.

File details

Details for the file dataflow_sdk-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: dataflow_sdk-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4d5f1f65f481f5aa1db8216c8c002a475f3c255ee8d15a58e8645332e820c8c9
MD5 21b46c17c15e77730a06922d40b1eec2
BLAKE2b-256 4e4fe7199980b0889407f7a09148fabf27872f345242e31a6693da31cf8e2138

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