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.load_job('census_buildings_join')

Available operations

The following are some of the key functions:

  • ingest: Upload a dataset into S3 with the Fused format.
  • open_table: Open a Table object given a path to the root of the table
  • run_local: Execute data processing tasks locally while you test and debug.
  • run_remote: Submit jobs to run on a remote clusters - by changing a single line of code.
  • export: Save a job and its configuration as a local directory, zip file, or gist.
  • load_job: Open a previously saved job.
  • load_udf: Open a previously saved UDF.
  • show: Debugger tool.
  • render: Render job or UDF to new Notebook cell and edit.

See the Fused documentation for the full list of available functions.

Docs

The documentation is a work in progress. It follows the Diátaxis system:

  • Getting Started Tutorial: A hands-on introduction to Fused.
  • How-to guides: Simple step-by-step user guides to accomplish specific tasks.
  • Reference guide: Commands, modules, classes and methods.
  • Explanation: Discussion of key decisions and design philosophy of the library.

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.2.0.tar.gz (160.6 kB view details)

Uploaded Source

Built Distribution

fused-1.2.0-py3-none-any.whl (210.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fused-1.2.0.tar.gz
  • Upload date:
  • Size: 160.6 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.2.0.tar.gz
Algorithm Hash digest
SHA256 8e8a4c21851a1c8c3adabfe258bddd966f65d3c9c0013d2f82f93bc9b56376af
MD5 17eb1410271cf734e3d69d6a687cc7af
BLAKE2b-256 2d9652caa5956eb8b5e63ac8fdc6d82fff018430f6334136cbc758c7d531c36e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fused-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 210.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09ea72e5b31eafae9369804d5fbd223f08769c6169c0da023d6eddeabf7f6660
MD5 4b9d9af436b6681d5b18869dd30350b1
BLAKE2b-256 45dc0e24ac5b678f9bd363d723cdc6028a5d04afe04572d0938281108d0b0a41

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