$npx skillfedfor your agent

tinsel

PySpark schema generator

SkipPyPI Software DevelopmentReleased Sep 2018186.8K downloads / moMIT licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — tinsel-0.3.0-py2.py3-none-any.whl
v0.3.0 · released 2018-09-01 · 1 runtime deps: pyspark

No. The package is abandoned (last release 2018-09-01, no maintenance since) and targets Python 3.6–3.7. Compatibility with modern PySpark and Python versions is unverified. For new projects, consider modern alternatives or write schemas directly using PySpark's StructType API. Install only if you are maintaining legacy code already using tinsel and cannot migrate.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires pyspark to be installed and a SparkSession available; designed for Python 3.6–3.7 era, compatibility with modern Python versions unverified.
  • Low install friction; depends only on pyspark.
  • However, the package is abandoned—last release was 2018-09-01 and no commits or maintenance activity since.

License · maintenance · safety

MIT license (permissive) — MIT license (permissive); you may use, modify, and distribute freely with attribution.

last release 2018-09-01 (2904 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 186,783 downloads/mo, #9,976 on PyPI

Verify before relying

from dataclasses import dataclass
from tinsel import struct, transform
from typing import NamedTuple, Optional, List

@struct
@dataclass
class UserInfo:
    hobby: List[str]

@struct
class User(NamedTuple):
    login: str
    age: int
    info: Optional[UserInfo]

schema = transform(User)
df = spark.createDataFrame(data, schema=schema)
  • Whether tinsel works with modern PySpark versions (3.x+) and Python 3.8+
  • Whether the package handles all complex nested types (e.g., deeply nested structs, union types) reliably
  • Performance characteristics when dealing with very large or deeply nested schema definitions
Same gist for agents: .md · .json

What it is and what it does

tinsel is a lightweight PySpark schema generator that converts Python NamedTuple and dataclass definitions into PySpark StructType schemas. Instead of writing verbose, error-prone schema definitions by hand, you define your data structure as a standard Python class, decorate it with @struct, and call transform() to produce the corresponding Spark schema. It handles nested structures, optional fields, collections (lists, dicts), and type annotations natively.

The package was last released in September 2018 and is no longer maintained. It targets Python 3.6–3.7 and depends only on pyspark. While it solves a real problem—schema boilerplate reduction—its age and lack of maintenance mean it may not work reliably with modern PySpark or Python versions without testing.

Use it for

  • Define PySpark DataFrame schemas using Python dataclasses or NamedTuples to avoid hand-written StructType boilerplate.
  • Quickly prototype data pipelines where schema structure mirrors your application's domain objects.
  • Generate schemas for nested, optional, and collection-heavy data structures with minimal code.
  • Keep schema definitions in sync with Python type definitions during development.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No.

The package is abandoned (last release 2018-09-01, no maintenance since) and targets Python 3.6–3.7. Compatibility with modern PySpark and Python versions is unverified. For new projects, consider modern alternatives or write schemas directly using PySpark's StructType API. Install only if you are maintaining legacy code already using tinsel and cannot migrate.

Install

tinsel on PyPI

Before you install

Low install friction; depends only on pyspark. However, the package is abandoned—last release was 2018-09-01 and no commits or maintenance activity since. Use only if your PySpark and Python versions remain compatible with the 3.6–3.7 era.

Requires pyspark to be installed and a SparkSession available; designed for Python 3.6–3.7 era, compatibility with modern Python versions unverified.

License in practice

MIT license (permissive); you may use, modify, and distribute freely with attribution.

Quickstart

from dataclasses import dataclass
from tinsel import struct, transform
from typing import NamedTuple, Optional, List

@struct
@dataclass
class UserInfo:
    hobby: List[str]

@struct
class User(NamedTuple):
    login: str
    age: int
    info: Optional[UserInfo]

schema = transform(User)
df = spark.createDataFrame(data, schema=schema)

Verify before relying

  • Whether tinsel works with modern PySpark versions (3.x+) and Python 3.8+
  • Whether the package handles all complex nested types (e.g., deeply nested structs, union types) reliably
  • Performance characteristics when dealing with very large or deeply nested schema definitions

Package facts

LicenseMIT license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pyspark
MaintenanceAbandoned 2,904 days since the last release
First released
Downloads186,783 / month, #9,976 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7

Evidence: tinsel-0.3.0-py2.py3-none-any.whl

Tags

Capabilities
pyspark schema generatordataclass to spark schemanamedtuple spark structpyspark schema from python typesautomatic spark dataframe schema
Topics
pysparkschema-generationabandoned
PyPI keywords
tinselpysparksparkschemastruct

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pyspark schema generator”

  • tinselGenerates PySpark DataFrame schemas from Python NamedTuple and…
  • quinnQuinn provides helper methods for PySpark DataFrame validation,…
  • sparkdanticConverts Pydantic models to PySpark schemas (StructType or JSON…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also sparkdantic · sparkaid · quinn · dataclasses-avroschema · warchant_dc_schema · namedlist · desert · recordclass · pyspark-pandas · recordtype