Registry / serialization / springform

springform

JSON →
library0.6.5pypypi✓ verified 83d ago

A simple templating system for Python class files. Current version: 0.6.5. Release cadence: irregular.

pip install springform
INSTALL
IMPORT
SIG · SPRINGFORM
S
springform
serializationpythonv0.6.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Form
from springform import Form
Correct import for the core class.

Basic usage of springform to create a templated class.

from springform import Form # Define a form class class MyForm(Form): pass # Create instance form = MyForm() print(form)
Debug
Known issues
gotchaVersion 0.4.0 renamed `Template` to `Form`. If using older code, update imports and references.
fix
Replace `Template` with `Form` in your code.
affects: <0.4.0
gotchaVersion 0.6.5 fixed a bug where base class was copied instead of inheriting class. Ensure you are using 0.6.5+ to avoid incorrect template replication.
fix
Upgrade to 0.6.5 or later.
affects: <0.6.5
Errors
Common errors & fixes
AttributeError: module 'springform' has no attribute 'Template'
springform renamed Template to Form in version 0.4.0.
fix
Use `from springform import Form` instead of `Template`.
Upgrade
Version history
0.6.5latest on PyPI · released Jan 3, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
springform — pip install springform · libregistry