kit494way's blog
  • Github Profile
  • Feed

Python 標準ライブラリだけで非同期に HTTP リクエストを投げる

非同期にリクエストを投げる HTTP クライアントライブラリはすでに存在する (e.g. httpx)が、 今回はあえて標準ライブラリだけで挑戦してみる。 利
Read full post gblog_arrow_right
2024-03-23 3 min read async http python

Python のデコレータをクラスで実装する

クラスを使ったデコレータの実装方法を紹介する。 クラスを使ってデコレータを実装する場合、__init__() メソッドの引数でデコレート対象の関
Read full post gblog_arrow_right
2022-03-07 , updated 2024-03-20 5 min read callable class decorator descriptor python

GCP サービスのエミュレータを Docker で起動する

GCP の Bigtable や Spanner などを利用するアプリケーションの開発をするとき、 エミュレータを利用すると課金がされないので便利。 エミュレータは Google Cloud SDK のコンポーネン
Read full post gblog_arrow_right
2021-05-30 2 min read docker emulator gcp

Linux systemd-run

systemd-run を使うと一時的な cgroup を作成してその中でコマンドを実行できる。 systemd-run はデフォルトでは service ユニットとしてコマンドを実行し、--scope オプションを指
Read full post gblog_arrow_right
2020-06-27 5 min read cgroup linux systemd systemd-run ubuntu

Linux cgroup version 2

Linux の cgroup version 2 を使って cpu リソースの制限をしてみる。 目次 検証環境 cgroup v2 のマウント状況を確認 cgroup v2 を利用できるようにする cgroup とプロセスの紐づけを確認 新しく
Read full post gblog_arrow_right
2020-05-23 , updated 2020-11-14 6 min read cgroup linux ubuntu
Page 1 of 2
NEXT gblog_keyboard_arrow_right
Atom Feed
Built with Hugo and
Back to top