Questions tagged [marshmallow]

Marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes. (For Questions about Android Marshmallow use the tag [android-6.0-marshmallow].)

Marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes. See https://marshmallow.readthedocs.io/en/latest/index.html

589 questions
-1
votes
1 answer

Python dataclasses circular parsing with marshmallow

I'm working with a JSON data structure and am trying to represent it as a dataclass. The data structure is (partly) circular and I want the nested data structures to be neatly represented as dataclasses as well. I am having some trouble getting the…
thijsfranck
  • 778
  • 1
  • 10
  • 24
-1
votes
1 answer

convert sqlalchemy model or marshmallow schema to avro

We want the authority of our avro schema to be our sqlalchemy model, which itself explicitly defines the database schema. We would like to generate an avro schema from the sqlalchemy model itself. Alternatively, it would be easy enough to generate…
melchoir55
  • 6,842
  • 7
  • 60
  • 106
-2
votes
1 answer

virtualenv dependencies don't respond well to Ubuntu 18.04

I am building this project on two computers, windows 10 and ubuntu 18.04. Actually I never succeeded to fully use the ubuntu pc. Whenever I try to make a post request to the database I get this error: File…
gvlkn
  • 25
  • 6
-2
votes
1 answer

How can I define a class attribute from a variable in Python?

I need to access a variable from a nested class. The objective is to create a Schema using the Marshmallow library. The code looks like this : class ParserScheme(Schema): class Meta: # Here I meed to access the value of my_variable : …
adurivault
  • 3
  • 1
  • 4
1 2 3
39
40