marshmallow-code / marshmallow-code/marshmallow-sqlalchemy
Is marshmallow compatible with SQLAlchemy imperative (aka classical) mapping ?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 580
- Forks
- 101
- Avg merge
- 7h 6m
- Merged PRs (30d)
- 3
Description
Hello,
I am building my first api, from a quite complex model (45+ domain objects) - and I would to know if marshmallow could fit my need as I have not found the answer elsewhere.
I use SQL Alchemy with an imperative mapping style: domain objects are defined in domain/model.py while tables are defined in adapters/orm.py.
Each domain object class is then explicitly mapped to its corresponding table.
All the examples I have seen use SQLAlchemy declarative mapping.
Is it possible to use marshmallow, especially the SQLAlchemyAutoSchema, with SQLAlchemy imperative mapping ?
thanks a lot for your help.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the imperative mapping described in domain/model.py and adapters/orm.py, then inspect how SQLAlchemyAutoSchema discovers mapped models. Determine whether this mapping style is supported and document the result, including any relevant limitations or usage guidance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, sqlalchemy
- Domain
- databases
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100