Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 455 for semf (0.02 seconds)

  1. fastapi/security/api_key.py

    
    class APIKeyBase(SecurityBase):
        model: APIKey
    
        def __init__(
            self,
            location: APIKeyIn,
            name: str,
            description: str | None,
            scheme_name: str | None,
            auto_error: bool,
        ):
            self.auto_error = auto_error
    
            self.model: APIKey = APIKey(
                **{"in": location},  # ty: ignore[invalid-argument-type]
                name=name,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 9.6K bytes
    - Click Count (1)
  2. docs_src/websockets_/tutorial003_py310.py

    """
    
    
    class ConnectionManager:
        def __init__(self):
            self.active_connections: list[WebSocket] = []
    
        async def connect(self, websocket: WebSocket):
            await websocket.accept()
            self.active_connections.append(websocket)
    
        def disconnect(self, websocket: WebSocket):
            self.active_connections.remove(websocket)
    
        async def send_personal_message(self, message: str, websocket: WebSocket):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 12:34:37 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  3. src/main/resources/crawler/transformer.xml

    		<postConstruct name="addFieldRule">
    			<arg>"title"</arg>
    			<arg>"//TITLE"</arg>
    			<arg>true</arg>
    		</postConstruct>
    		<postConstruct name="addFieldRule">
    			<arg>"important_content"</arg>
    			<arg>"//*[self::H1 or self::H2 or self::H3]"</arg>
    			<arg>true</arg>
    		</postConstruct>
    	</component>
    
    	<component name="fessFileTransformer" class="org.codelibs.fess.crawler.transformer.FessFileTransformer" instance="singleton">
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Dec 20 13:14:54 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  4. scripts/people.py

    
    class RateLimiter:
        def __init__(self) -> None:
            self.last_query_cost: int = 1
            self.remaining_points: int = 5000
            self.reset_at: datetime = datetime.fromtimestamp(0, timezone.utc)
            self.last_request_start_time: datetime = datetime.fromtimestamp(0, timezone.utc)
            self.speed_multiplier: float = 1.0
    
        def __enter__(self) -> "RateLimiter":
            now = datetime.now(tz=timezone.utc)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 13:51:24 GMT 2026
    - 15K bytes
    - Click Count (0)
  5. tests/test_custom_middleware_exception.py

                    )
                return message
    
            return inner
    
        async def __call__(self, scope, receive, send):
            if scope["type"] != "http" or self.max_content_size is None:
                await self.app(scope, receive, send)
                return
    
            wrapper = self.receive_wrapper(receive)
            await self.app(scope, wrapper, send)
    
    
    @router.post("/middleware")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  6. docs_src/dependencies/tutorial010_py310.py

    class MySuperContextManager:
        def __init__(self):
            self.db = DBSession()
    
        def __enter__(self):
            return self.db
    
        def __exit__(self, exc_type, exc_value, traceback):
            self.db.close()
    
    
    async def get_db():
        with MySuperContextManager() as db:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 292 bytes
    - Click Count (0)
  7. docs_src/custom_request_and_route/tutorial001_py310.py

    
    class GzipRequest(Request):
        async def body(self) -> bytes:
            if not hasattr(self, "_body"):
                body = await super().body()
                if "gzip" in self.headers.getlist("Content-Encoding"):
                    body = gzip.decompress(body)
                self._body = body
            return self._body
    
    
    class GzipRoute(APIRoute):
        def get_route_handler(self) -> Callable:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 976 bytes
    - Click Count (0)
  8. tests/test_dependency_wrapped.py

        @noop_wrap
        def __call__(self):
            return True
    
    
    class_instance_wrapped_dep = ClassInstanceWrappedDep()
    
    
    class ClassInstanceWrappedAsyncDep:
        @noop_wrap_async
        def __call__(self):
            return True
    
    
    class_instance_wrapped_async_dep = ClassInstanceWrappedAsyncDep()
    
    
    class ClassInstanceWrappedGenDep:
        @noop_wrap
        def __call__(self):
            yield True
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  9. docs_src/custom_request_and_route/tutorial001_an_py310.py

    
    class GzipRequest(Request):
        async def body(self) -> bytes:
            if not hasattr(self, "_body"):
                body = await super().body()
                if "gzip" in self.headers.getlist("Content-Encoding"):
                    body = gzip.decompress(body)
                self._body = body
            return self._body
    
    
    class GzipRoute(APIRoute):
        def get_route_handler(self) -> Callable:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 1015 bytes
    - Click Count (0)
  10. tests/test_dependency_after_yield_websockets.py

    from fastapi import Depends, FastAPI, WebSocket
    from fastapi.testclient import TestClient
    
    
    class Session:
        def __init__(self) -> None:
            self.data = ["foo", "bar", "baz"]
            self.open = True
    
        def __iter__(self) -> Generator[str, None, None]:
            for item in self.data:
                if self.open:
                    yield item
                else:
                    raise ValueError("Session closed")
    
    
    @contextmanager
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2K bytes
    - Click Count (0)
Back to Top