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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dataflow_sdk-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 8009c9edf5f3fcef39c266e9861add2e2d4648564e644a6461aa32bd49c08f76
MD5 10082c8cb5e6d38bf146f536fa08beeb
BLAKE2b-256 9f9d826493bcf62b3c92a75aa09889f1a2e380eb58d5e01d84d5ee67ad4fa068

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dataflow_sdk-0.1.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 395bfd4f52546b64b128d22ea53e0bbaabf64b891b5fd45bd3ebdf1fc84e3843
MD5 e3fa8e2f8967ad069b89130c95814ecf
BLAKE2b-256 f45ac786846f6deb167438c7e3e07746c2f4497066b5e6dc8f24b0b0a20c8457

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