Skip to main content

syf's work bench - common development utilities

Project description

syfwb (syf's work bench)

Common development utilities for Python projects.

Features

  • IO: Easy read/write for JSON and JSONL files.
  • Client: Wrapper for OpenAI API calls.
  • Utils: Retry mechanisms for robust function execution.

Usage

from syfwb import io, client, utils

# JSON IO
data = io.read_json("data.json")
io.write_jsonl("output.jsonl", data)

# OpenAI
response = client.call_openai(messages=[...])

# Retry
@utils.retry(max_attempts=3)
def unstable_func():
    ...

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

syfwb-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

syfwb-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file syfwb-0.1.0.tar.gz.

File metadata

  • Download URL: syfwb-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.1

File hashes

Hashes for syfwb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a98f9d72b606b2a90540a2dd6aae19390453656fc03639fc02663c2973fdf821
MD5 82f2399e025a22620b7914c2dbec1969
BLAKE2b-256 fdedb861bd5340720b5376f4f5ff261592dc2260b992e22e4d538320856b0ffa

See more details on using hashes here.

File details

Details for the file syfwb-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: syfwb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.1

File hashes

Hashes for syfwb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5edf4f347176be28010f8d4edba959dd454ebad556d3532763db68b6d7cb130
MD5 4f7ece703545ac84d0ce4205256abb53
BLAKE2b-256 2dd59dcde3b9d3d59f85accac77036d86e7069e8e403047d1ebe097abc4918b2

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