Skip to main content

Add your description here

Project description

dataflow-sdk

Example

from dataflow_sdk import save_items, Record
from dataflow_sdk.entity.model import CrawlType

result = {
    'name': 'xiaoming',
    "age": 25,
    "hello": "world",
    "world": 1121211
}

records = [Record(
    crawl_url=f"https://add.weee.tsinghua.edu.cn/{x}",
    crawl_type=CrawlType.ITEM,
    data=result,
    metadata={"name": "gage"},
) for x in range(10)]

save_items('Your Sink ID', 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.2.2.tar.gz (8.7 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.2.2-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dataflow_sdk-0.2.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for dataflow_sdk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 6e6bcdc7b874b99797c020651d894f3a81f24600f3b6d6fe90d601362499283e
MD5 7538bebc03855b0d76271d417dfb6305
BLAKE2b-256 571e469dee0a461e9c7ac1d32cecc043e106b4c5eeaaceec0f7e084ee804d370

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dataflow_sdk-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for dataflow_sdk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 750e7a29f9b8b2abb1ba0aa7c27991794dac15dd097be841a6edbc515225cb10
MD5 d73323ed16c0de292f7db31c57227406
BLAKE2b-256 fd356190b3afa5bf81edb84e1e31ac99f8fe2cfbf7f69eb36e8b45b79b884bf5

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