- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 64 for createEl (0.61 sec)
-
docs/en/docs/how-to/sql-databases-peewee.md
``` !!! tip Peewee creates several magic attributes. It will automatically add an `id` attribute as an integer to be the primary key. It will chose the name of the tables based on the class names. For the `Item`, it will create an attribute `owner_id` with the integer ID of the `User`. But we don't declare it anywhere. ## Create the Pydantic models
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 16 13:23:25 GMT 2024 - 23.6K bytes - Viewed (1) -
docs/en/docs/async.md
### Other utility functions Any other utility function that you call directly can be created with normal `def` or `async def` and FastAPI won't affect the way you call it.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23K bytes - Viewed (0) -
tests/test_sub_callbacks.py
subrouter = APIRouter() @subrouter.post("/invoices/", callbacks=invoices_callback_router.routes) def create_invoice(invoice: Invoice, callback_url: Optional[HttpUrl] = None): """ Create an invoice. This will (let's imagine) let the API user (some external developer) create an invoice. And this path operation will: * Send the invoice to the client.
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 13.8K bytes - Viewed (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
## Use `SecurityScopes` Now update the dependency `get_current_user`. This is the one used by the dependencies above. Here's were we are using the same OAuth2 scheme we created before, declaring it as a dependency: `oauth2_scheme`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 21:21:35 GMT 2024 - 20.5K bytes - Viewed (0) -
tests/test_tutorial/test_dataclasses/test_tutorial003.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Sep 28 04:14:40 GMT 2023 - 12.1K bytes - Viewed (0) -
tests/test_security_oauth2_optional_description.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.9K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
Let's say you want it to return indented and formatted JSON, so you want to use the orjson option `orjson.OPT_INDENT_2`. You could create a `CustomORJSONResponse`. The main thing you have to do is create a `Response.render(content)` method that returns the content as `bytes`: ```Python hl_lines="9-14 17" {!../../../docs_src/custom_response/tutorial009c.py!} ``` Now instead of returning:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.7K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005.py
assert verify_password("secret", fake_users_db["johndoe"]["hashed_password"]) def test_get_password_hash(): assert get_password_hash("secretalice") def test_create_access_token(): access_token = create_access_token(data={"data": "foo"}) assert access_token def test_token_no_sub(): response = client.get( "/users/me", headers={
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 15.4K bytes - Viewed (0) -
README.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 22.6K bytes - Viewed (0) -
docs/en/data/external_links.yml
author_link: https://jarmos.netlify.app/ author: Somraj Saha - author: "@pystar" author_link: https://pystar.substack.com/ link: https://pystar.substack.com/p/how-to-create-a-fake-certificate title: How to Create A Fake Certificate Authority And Generate TLS Certs for FastAPI - author: Ben Gamble author_link: https://uk.linkedin.com/in/bengamble7
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 21 20:57:27 GMT 2024 - 21.3K bytes - Viewed (2)