tinsel
PySpark schema generator
Decision gist · record as of 2026-08-14
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
Alternatives
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
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.
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
| License | MIT license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepyspark |
| Maintenance | Abandoned 2,904 days since the last release |
| First released | |
| Downloads | 186,783 / month, #9,976 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None 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
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
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.
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.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
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.
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.
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.
See also sparkdantic · sparkaid · quinn · dataclasses-avroschema · warchant_dc_schema · namedlist · desert · recordclass · pyspark-pandas · recordtype