Skip to content

Commit

Permalink
minor fix. (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-six authored Jan 4, 2024
1 parent 12274a5 commit b9597ec
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 35 deletions.
2 changes: 0 additions & 2 deletions cookbook/core/asyncio/tcp_client_low.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ async def tcp_echo_client(data: bytes):
asyncio.run(tcp_echo_client(b'Hello World!')) # Python 3.7+
```

See [source code](https://github.com/leven-cn/python-cookbook/blob/main/examples/core/tcp_client_asyncio_low_api.py)

## More

- [TCP/UDP (Recv/Send) Buffer Size](net_buffer_size)
Expand Down
2 changes: 1 addition & 1 deletion cookbook/core/logging/logging_dict_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ logging.config.dictConfig(LOGGING)

## More Details

- [Logging Components and Flow](https://leven-cn.github.io/python-cookbook/cookbook/core/logging/logging_flow)
- [Logging Components and Flow](logging_flow)

## References

Expand Down
2 changes: 1 addition & 1 deletion cookbook/core/logging/logging_flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Logging Flow

![Logging Flow](https://leven-cn.github.io/python-cookbook/imgs/logging_flow.png)
![Logging Flow](https://lucas-six.github.io/python-cookbook/imgs/logging_flow.png)

## References

Expand Down
2 changes: 1 addition & 1 deletion cookbook/core/logging/logging_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ logging.basicConfig(level=numeric_level, ...)

## More Details

- [Logging Components and Flow](https://leven-cn.github.io/python-cookbook/cookbook/core/logging/logging_flow)
- [Logging Components and Flow](logging_flow)

## References

Expand Down
4 changes: 1 addition & 3 deletions cookbook/core/net/io_multiplex_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,9 @@ run_client(
)
```

See [source code](https://github.com/leven-cn/python-cookbook/blob/main/examples/core/tcp_client_ipv4_io_multiplex.py)

## More

- [I/O Multiplex (I/O多路复用) (Server)](https://leven-cn.github.io/python-cookbook/cookbook/core/net/io_multiplex_server)
- [I/O Multiplex (I/O多路复用) (Server)](io_multiplex_server)

## References

Expand Down
2 changes: 1 addition & 1 deletion cookbook/core/net/io_multiplex_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if __name__ == '__main__':

## More

- [I/O Multiplex (I/O多路复用) (Client)](https://leven-cn.github.io/python-cookbook/cookbook/core/net/io_multiplex_client)
- [I/O Multiplex (I/O多路复用) (Client)](io_multiplex_client)

## References

Expand Down
2 changes: 1 addition & 1 deletion cookbook/core/net/struct.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ assert s.unpack_from(buf2, 0) == value

## More

- [Endianness - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/general_concepts/endianness)
- [Endianness - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/general_concepts/endianness)

## References

Expand Down
6 changes: 3 additions & 3 deletions cookbook/core/net/tcp_client_ipv4.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ if __name__ == '__main__':

## More

- [TCP Connect Timeout (Client Side) - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_connect_timeout_client)
- [TCP/UDP (Recv/Send) Buffer Size: `SO_RCVBUF`, `SO_SNDBUF` - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/buffer_size)
- [TCP Transmission Timeout: `SO_RCVTIMEO`, `SO_SNDTIMEO` - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_transmission_timeout)
- [TCP Connect Timeout (Client Side) - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_connect_timeout_client)
- [TCP/UDP (Recv/Send) Buffer Size: `SO_RCVBUF`, `SO_SNDBUF` - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/buffer_size)
- [TCP Transmission Timeout: `SO_RCVTIMEO`, `SO_SNDTIMEO` - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_transmission_timeout)

## References

Expand Down
22 changes: 11 additions & 11 deletions cookbook/core/net/tcp_server_ipv4.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,17 @@ if __name__ == '__main__':

## More

- [TCP Connect Timeout (Server Side) - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_connect_timeout_server)
- [TCP `listen()` Queue: `socket.SOMAXCONN` - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_listen_queue)
- [TCP Reuse Address: `SO_REUSEADDR` - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_reuse_address)
- [TCP/UDP Reuse Port: `SO_REUSEPORT` - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/reuse_port)
- [TCP Keep Alive: `SO_KEEPALIVE`, `TCP_KEEPIDLE`, `TCP_KEEPCNT`, `TCP_KEEPINTVL` - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_keepalive)
- [TCP Nodelay (disable Nagle's Algorithm): `TCP_NODELAY` - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_nodelay)
- [TCP/UDP (Recv/Send) Buffer Size: `SO_RCVBUF`, `SO_SNDBUF` - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/buffer_size)
- [TCP Transmission Timeout: `SO_RCVTIMEO`, `SO_SNDTIMEO` - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_transmission_timeout)
- [TCP Quick ACK (Disable Delayed ACKs, 禁用延迟确认) - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_quickack)
- [TCP Slow Start (慢启动) - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_slowstart)
- [TCP Fast Open (TFO) - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/net/tcp_fastopen)
- [TCP Connect Timeout (Server Side) - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_connect_timeout_server)
- [TCP `listen()` Queue: `socket.SOMAXCONN` - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_listen_queue)
- [TCP Reuse Address: `SO_REUSEADDR` - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_reuse_address)
- [TCP/UDP Reuse Port: `SO_REUSEPORT` - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/reuse_port)
- [TCP Keep Alive: `SO_KEEPALIVE`, `TCP_KEEPIDLE`, `TCP_KEEPCNT`, `TCP_KEEPINTVL` - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_keepalive)
- [TCP Nodelay (disable Nagle's Algorithm): `TCP_NODELAY` - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_nodelay)
- [TCP/UDP (Recv/Send) Buffer Size: `SO_RCVBUF`, `SO_SNDBUF` - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/buffer_size)
- [TCP Transmission Timeout: `SO_RCVTIMEO`, `SO_SNDTIMEO` - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_transmission_timeout)
- [TCP Quick ACK (Disable Delayed ACKs, 禁用延迟确认) - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_quickack)
- [TCP Slow Start (慢启动) - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_slowstart)
- [TCP Fast Open (TFO) - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/net/tcp_fastopen)

## References

Expand Down
8 changes: 4 additions & 4 deletions cookbook/web/django_cache_redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Dependencies

- Redis *5.0+*.
See [Setup](https://leven-cn.github.io/linux-cookbook/cookbook/admin/redis/redis_setup)
- [CLI: `redis-cli` - Basic Usage](https://leven-cn.github.io/linux-cookbook/cookbook/admin/redis/redis_usage_basic)
See [Setup](https://lucas-six.github.io/linux-cookbook/cookbook/admin/redis/redis_setup)
- [CLI: `redis-cli` - Basic Usage](https://lucas-six.github.io/linux-cookbook/cookbook/admin/redis/redis_usage_basic)

```toml
# pyproject.toml
Expand Down Expand Up @@ -211,8 +211,8 @@ cache.delete_many(['a', 'b', 'c'])

## More

- [Redis Setup - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/redis/redis_setup)
- [CLI: `redis-cli` Basic Usage - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/redis/redis_usage_basic)
- [Redis Setup - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/redis/redis_setup)
- [CLI: `redis-cli` Basic Usage - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/redis/redis_usage_basic)
- [Redis Python API: `redis-py`](../system_services/redis)

## References
Expand Down
8 changes: 4 additions & 4 deletions cookbook/web/django_db_postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Dependencies

- PostgreSQL *11+*: [Setup](https://leven-cn.github.io/linux-cookbook/cookbook/admin/postgresql/postgresql_setup)
and [Usage](https://leven-cn.github.io/linux-cookbook/cookbook/admin/postgresql/postgresql_usage).
- PostgreSQL *11+*: [Setup](https://lucas-six.github.io/linux-cookbook/cookbook/admin/postgresql/postgresql_setup)
and [Usage](https://lucas-six.github.io/linux-cookbook/cookbook/admin/postgresql/postgresql_usage).

```toml
# pyproject.toml
Expand Down Expand Up @@ -175,8 +175,8 @@ CREATE INDEX IF NOT EXISTS example_app_b_a_id_9a9a6b60

## More

- [PostgreSQL Setup - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/postgresql/postgresql_setup)
- [PostgreSQL CLI: `psql` Usage - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/admin/postgresql/postgresql_usage)
- [PostgreSQL Setup - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/postgresql/postgresql_setup)
- [PostgreSQL CLI: `psql` Usage - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/admin/postgresql/postgresql_usage)

## References

Expand Down
2 changes: 1 addition & 1 deletion cookbook/web/django_quickstart.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Django - Quick Start

[How to Read **"Django"**](https://leven-cn.github.io/python-cookbook/audios/django_pronunciation.mp3)
[How to Read **"Django"**](https://lucas-six.github.io/python-cookbook/audios/django_pronunciation.mp3)

## Solution

Expand Down
2 changes: 1 addition & 1 deletion cookbook/web/fastapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async def shutdown_db_client():
## References

- [Getting Started with MongoDB and FastAPI](https://www.mongodb.com/developer/languages/python/python-quickstart-fastapi/)
- [`uvicorn`: ASGI, WebSockets](https://leven-cn.github.io/python-cookbook/cookbook/web/uvicorn)
- [`uvicorn`: ASGI, WebSockets](uvicorn)
- [`Pydantic`](https://pydantic-docs.helpmanual.io/): data validation
- [`Beanie` - Async Python ODM for MongoDB, based on `Pydantic`](https://beanie-odm.dev/)
- [Awesome List for FastAPI](https://github.com/mjhea0/awesome-fastapi)
2 changes: 1 addition & 1 deletion cookbook/web/http_cookie.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ morsel.output(attrs=['domain'], header='Cookie: ')

## More Details

- [HTTP Cookie - Linux Cookbook](https://leven-cn.github.io/linux-cookbook/cookbook/web/http/http_cookie)
- [HTTP Cookie - Linux Cookbook](https://lucas-six.github.io/linux-cookbook/cookbook/web/http/http_cookie)

## References

Expand Down

0 comments on commit b9597ec

Please sign in to comment.