Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What package is this: from schemas.tokens import Token

In this tutorial one line of the code reads

from schemas.tokens import Token

Which package do I need to install? I cannot find it out by Google.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Further down the tutorial we read:

We need a schema to verify that we are returning an access_token and token_type as defined in our response_model. Let’s put this code in schemas > tokens.py

So it’s a package created in the tutorial itself, i.e. a custom package, not from some library.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading