Skip to main content

No project description provided

Project description

Fused Public Python package

🌎 Code to Map. Instantly.



version

Fused is a Python library to code, scale, and ship geospatial workflows of any size. Express workflows as shareable UDFs (user defined functions) without thinking about the underlying compute. The Fused Python library is maintained by Fused.io.

Prerequisites

Python >= 3.8

Install

Fused is currently in private beta. Email info@fused.io for access.

pip install fused

Quickstart

import fused


# Load data
census = 's3://fused-asset/infra/census_bg_us/'
buildings = 's3://fused-asset/infra/building_msft_us/'

# Declare UDF
@fused.udf()
def census_buildings_join(left, right):
    import fused
    df_joined = fused.utils.geo_join(left.data, right.data)
    df_cnt = df_joined.groupby(['fused_index','GEOID']).size().to_frame('count_building').reset_index()
    return df_cnt

# Instantiate job configuration that runs the data against the UDF
job = census_buildings_join(census, buildings)

# Run locally
job.run_local()

# Run on remote compute managed by Fused and view logs
job_id = job.run_remote(output_table='s3://my-s3-bucket/census_buildings_join')
job_id.tail_logs()

# Export job to local directory
job.export('census_buildings_join', overwrite=True)

# Re-import job
fused.experimental.load_job('census_buildings_join')

Changelog

See the changelog for the latest changes.

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

fused-1.3.0.tar.gz (147.4 kB view details)

Uploaded Source

Built Distribution

fused-1.3.0-py3-none-any.whl (193.5 kB view details)

Uploaded Python 3

File details

Details for the file fused-1.3.0.tar.gz.

File metadata

  • Download URL: fused-1.3.0.tar.gz
  • Upload date:
  • Size: 147.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/23.2.0

File hashes

Hashes for fused-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f802d1fcea7d31d80eae5c9c06a9dc489ddc3b687a26df4af3f4de97cb9944e1
MD5 f89011d79331390f5c7e9d4868b46484
BLAKE2b-256 47db38c721441538bf3aa0d9e03f32a9cc5a8476489c0bc78e83bf1aeb72bc84

See more details on using hashes here.

File details

Details for the file fused-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: fused-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 193.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/23.2.0

File hashes

Hashes for fused-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76df846f3e42dd542e5a128328d49a61a52c1d50af0381199e8a76728d4e437a
MD5 793f697b3c8c1654019dc0fa3b232869
BLAKE2b-256 44cc613701b7fbc12cfc16d2634d560b97d730f33145fcbfd84edcf0d0c11684

See more details on using hashes here.

Supported by

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