tungsten-filament
Move a Laravel Filament admin to Tungsten, the Filament-style admin for Python and FastAPI.
pip install tungsten-filament
tungsten-filament scan path/to/laravel-app # what converts, what needs a human (writes nothing)
tungsten-filament convert path/to/laravel-app # writes tungsten_admin/
uvicorn tungsten_admin.app:app --reload
It reads your Laravel project (it does not run PHP) and writes a ready Tungsten admin:
- Models from your migrations (or from the live database with
--database-url): columns, types, nulls, defaults, foreign keys, renames and drops in later migrations,$casts, soft deletes, UUID/ULID keys. - Relations from your Eloquent models:
belongsTo,hasMany,hasOne,belongsToManywith pivot tables, paired both ways. - PHP enums as Python enums, with their
getLabel()labels andgetColor()badge colors. - Resources (Filament 3 and 4): icon, group, sort, labels, pages, simple (modal) resources, global search.
- Forms: fields, sections, grids, tabs, wizards, repeaters with relationships, selects with relationships or enums, Laravel rules like
required|min:3, and short closures such asfn (Get $get) => $get('type') === 'company'. - Tables: columns, money and date formats, badges, filters (select, ternary, trashed, simple
wherequeries), actions, bulk actions, default sort, empty state. - Infolists and relation managers.
- Panel settings: path, brand name, colors, navigation groups.
The new admin uses the same database as the Laravel app, read from its .env (no data copy, no secrets in the code), and people sign in with the same email and password (Laravel bcrypt hashes work as they are).
Anything it cannot carry over is marked # TODO(filament) in the code and listed in MIGRATION_REPORT.md: custom pages, widgets, policies, Livewire, long closures, morph relations and Filament plugins (with the Tungsten plugin to use instead).
Guide: https://tungsten.prisminfoways.com/docs/filament-migration
Tests
pip install -e ".[dev]" -e plugins/filament-migrate
pytest plugins/filament-migrate/tests
The tests convert two sample Laravel apps (tests/fixtures/shop3 on Filament 3, tests/fixtures/blog4 on Filament 4), then sign in to the result and list, create and edit records.
Metadata
Release files for tungsten-filament 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tungsten_filament-0.1.1.tar.gz | 72.5 kB | Without provenance | Details for tungsten_filament-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tungsten_filament-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for tungsten_filament-0.1.1-py3-none-any.whl |
Total release size: 131.5 kB
Release files / tungsten_filament-0.1.1.tar.gz
| Download URL | tungsten_filament-0.1.1.tar.gz |
|---|---|
| Size | 72.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a23b91b3589c554201b5d7684ae75d78e8b03b5bbe672b753601dfdcf90eb207
|
|
BLAKE2b-256 checksum How to use checksums |
1d878151bd48c144012b13c92be2e0abcdd979cb2a8215bb86543469ceee4a85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.17
|
Release files / tungsten_filament-0.1.1-py3-none-any.whl
| Download URL | tungsten_filament-0.1.1-py3-none-any.whl |
|---|---|
| Size | 59.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfd51671669fb67c68fbe9f15185ab6b26cb8b3e58d37934f9aa3c723d75516a
|
|
BLAKE2b-256 checksum How to use checksums |
d1137fac2263d92829ce7cd8e2dbf436652c41fda5816c4d820c9d9aa1803ec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.17
|
Security for tungsten-filament 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.