CLI utility and Python library for interacting with Large Language Models from organizations like OpenAI, Anthropic and Gemini plus local models installed on your own machine.
# -*- coding: utf-8 -*- import sqlite3 import sys import os # easy_install lxml==3.4.1 from lxml import etree from peewee import * database_proxy = Proxy() database = None class BaseModel(Model): """ モデルクラスのベース """ class Meta: database = database_proxy class Curve(BaseModel): """ 曲線情報モデル """ curve_id = CharField(index=True, unique=False) lat = DoubleField() lng = DoubleField() class RailRoadSectio
Pythonへの型アノテーション導入を目指すGuido van Rossum氏 mypy の型アノテーションの構文を Python に取り込もうとメーリングリストで提案したニュースが話題になりました。今夏に話題になったニュースを今冬にフォローするという季節外れ感ですが、ずっと興味はあって「あとで読む」状態になっていたのを調べてみました。 基本的には mypy のドキュメントから自分の興味のあるところをかいつまんで説明しています。分かりにくいところがあれば原文を参照してください。 Welcome to Mypy documentation! mypy とは mypy は Python の静的型チェッカー (static type checker) です。wikipedia:静的コード解析 や wikipedia:en:Lint (software) ツールの一種だと説明されています。 Pyt
Verified details These details have been verified by PyPI Maintainers jaraco Meta Maintainer: Jason R. Coombs Unverified details These details have not been verified by PyPI Project links Source Meta License Expression: MIT SPDX License Expression Author: Kang Zhang Requires: Python >=3.9 Provides-Extra: test , doc , check , cover , enabler , type , completion The Python keyring library provides a
PyPI に testing.mysqld と testing.cassandra をリリースしました。 パッケージ名に test と付いている通り、テストに使うモジュールです。 11/21訂正: test というパッケージは python 本体で使われていたので、パッケージ名を testing.* に変更しました。 なにをするもの? test.mysqld と test.cassandra はテストを実行する際に MySQL (Cassandra) を起動し、 テストが終了したあとに MySQL (Cassandra) を終了するという動きをしてくれるライブラリです。 Perl の Test::mysqld を Python で実装しなおしたものです。 テストする際にホンモノの MySQL や Cassandra が必要な場合に使えるかもしれません。 なんのためにつくったの? これまで
You are reading the 2024 edition of the Flask Mega-Tutorial. The complete course is also available to order in e-book and paperback formats from Amazon. Thank you for your support! If you are looking for the 2018 edition of this course, you can find it here. For your reference, here is the complete list of articles in this series: Chapter 1: Hello, World! (this article) Chapter 2: Templates Chapte
This document discusses using Gevent to scale Django applications. It provides an overview of concurrency models like multi-process, threads, and event-driven approaches. It describes how Gevent uses greenlets and coroutines to provide asynchronous and concurrent execution without blocking the Python GIL. The document shares the author's experience migrating their products from Twisted to using Ge
普段、Pythonのコードは何となく速かろうという、言ってみれば勘で書いているのだけど、その勘とやらは往々にしてウンコードを生むものである。そこで、プロファイラを使っていきたいと思う。 使えそうなツール そういうわけで、いくつか使えそうなツールをリストアップした。 経過時間のプロファイラ ツール名 メモ profile ビルトイン, ピュアPythonの決定論的プロファイラ cProfile ビルトイン, C拡張の決定論的プロファイラ line_profiler 行単位の決定論的プロファイラ Plop 統計的プロファイラ, Dropboxの人が作ってる statprof 統計的プロファイラ, 開発停止? yep 拡張モジュール用の統計的プロファイラ, バックエンドにgoogle-perftools メモリのプロファイラ ツール名 メモ memory_profiler 行単位でメモリ消費量の
【アプリ開発日誌】 ときどき日記、サブスク管理...などなど、最近の開発状況まとめ アプリ開発日誌を週刊化。ときどき日記、サブスク管理、韓国語タイピングなど、現在開発・運用中のアプリをまとめてご紹介します。 今日 【2026年2月版】 最小構成ではじめるOpenClawセットアップガイド(HOSTINGER + Discord) OpenClawをHOSTINGERのVPSにデプロイしてDiscordボットとして動かすまでの手順を日本語でまとめました。最小構成で月1,500円ほどから始められます。 8日前 Bambu Lab A1 mini + AMS 2 Pro + BIQU Panda Stackで、快適3Dプリンター生活を始める方法 Bambu Lab A1 miniにAMS 2 ProとBIQU Panda Stackを導入。購入先の選び方から組み立て、接続、多色印刷テストまでの手
はじめに このチュートリアルはある程度の Python の知識を前提としていますが、 それ以上の知識は前提としていません。 並列プログラミングの知識も必要ありません。 このチュートリアルの目的は、 gevent を扱う道具を提供し、 読者がすでに持っている一般的な並列プログラミングの問題を手なづけて 非同期プログラムを書き始められるように手助けすることです。 寄稿者 時系列順の寄稿者: Stephen Diehl Jérémy Bethmont sww Bruno Bigras David Ripton Travis Cline Boris Feld youngsterxyf Eddie Hebert Alexis Metaireau Daniel Velkov そして Denis Bilenko に、 gevent の開発とこのチュートリアルを作る上での 指導について感謝します。 この共
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く