Skip to main content

A small library to manage pandas DataFrames in Parquet files using PyArrow.

Project description

Floorer

Floorer is a simple Python library for managing pandas DataFrames in Parquet files using PyArrow. It provides CRUD operations and maintains a catalog of all DataFrames.

Installation

pip install floorer

Usage

import pandas as pd
from floorer import Floorer

# Initialize Floorer with a directory
floorer = Floorer('parquet_files')

# Create sample DataFrames
df1 = pd.DataFrame({
    'name': ['Alice', 'Bob'],
    'age': [25, 30]
})
df1.name = 'people'

df2 = pd.DataFrame({
    'product': ['A', 'B'],
    'price': [100, 200]
})
df2.name = 'products'

# Create Parquet files
floorer.create_parquet(df1)
floorer.create_parquet(df2)

# Read a Parquet file
read_df = floorer.read_parquet('people')

# Update a Parquet file
df1_updated = pd.DataFrame({
    'name': ['Alice', 'Bob', 'Charlie'],
    'age': [25, 30, 35]
})
df1_updated.name = 'people'
floorer.update_parquet(df1_updated)

# Delete a Parquet file
floorer.delete_parquet('products')

# Get the catalog
catalog_df = floorer.get_catalog()

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

floorer-0.1.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

floorer-0.1.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file floorer-0.1.4.tar.gz.

File metadata

  • Download URL: floorer-0.1.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.0

File hashes

Hashes for floorer-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fd117915484640a86729300fefaf3eaa9bd2e0f6bc6e2d54f43314a5c563dd41
MD5 4458b2c88137d0fd83bb55ce93faa23e
BLAKE2b-256 612b8398b75a2f36185b255cbd4ef2c5c43e20f3e16ca24a245d4e3c970405c6

See more details on using hashes here.

File details

Details for the file floorer-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: floorer-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.0

File hashes

Hashes for floorer-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9f224116926d1d05a2206080b42592c3c455ea0c20195a52aada5bd0f6e3f74c
MD5 d1a0d181c926a8230f9bf346cd377933
BLAKE2b-256 27576bcfebadade4e61332943fcaef5768b462a14392694292bdd4ae58797c72

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