textract¶ As undesireable as it might be, more often than not there is extremely useful information embedded in Word documents, PowerPoint presentations, PDFs, etc—so-called “dark data”—that would be valuable for further textual analysis and visualization. While several packages exist for extracting content from each of these formats on their own, this package provides a single interface for extra
Watchy is a distributed system for Application and Server Monitoring, I've always found most solutions be very complicated and hard to manage. Making applications watch process id's then they stop and the pid has updated and you start the whole thing over again. Watchy has a distributed architecture and communication between the daemon on each server to the dashboard is over udp, meaning if someth
khal¶ Khal is a standards based CLI (console) calendar program, able to synchronize with CalDAV servers through vdirsyncer. Features¶ (or rather: limitations) khal can read and write events/icalendars to vdir, so vdirsyncer can be used to synchronize calendars with a variety of other programs, for example CalDAV servers. fast and easy way to add new events ikhal (interactive khal) lets you browse
Pykka Pykka is a Python implementation of the actor model. The actor model introduces some simple rules to control the sharing of state and cooperation between execution units, which makes it easier to build concurrent applications. For details and code examples, see the Pykka documentation. Pykka is available from PyPI. To install it, run: Pykka works with Python 3.9 or newer. Inspiration Much
Flask-SocketIO¶ Flask-SocketIO gives Flask applications access to low latency bi-directional communications between the clients and the server. The client-side application can use any of the SocketIO client libraries in Javascript, Python, C++, Java and Swift, or any other compatible client to establish a permanent connection to the server.
prefetch_relatedはDjango 1.4で追加された機能です。 親子関係を表すモデル(多対多になってるものなど)をツリー状に表示する場合、ループ内でクエリを実行しってしまうと、クエリ数が多くて極端に遅くなります(特に2段目とか3段目)。 prefetch_relatedを使うと、事前にリレーション先のデータを取得しておき、ループ内で新たにクエリが実行されないようにできます。 試したバージョンは、Python2.7、Django1.6.5です。 ソースコード 完全なコードはgithubに置いてます。 sample_nullpobug/django/market at main · tokibito/sample_nullpobug · GitHub shop/models.py # coding: utf-8 from django.db import models class
MOONGIFTはオープンソース・ソフトウェアを紹介するブログです。2021年07月16日で更新停止しました 勉強会などでコンソール操作をライブで行うケースがあるのですが、普段は何でもないコマンドがミスしたり、typoしてしまったりすると場の雰囲気が壊れてしまいます。そんなミスもライブ感があっていいのですが、発表者にとっては気が気ではないでしょう。 そこで使ってみたいのがdoitliveです。コンソール操作を記録して任意の速度で実行できるようにしてくれるソフトウェアです。 doitliveの使い方 $ doitlive record というコマンドで記録を残すことができます。プレゼンの前に予め操作を記録しておき、後はライブで順番に実行していくだけです。これならばコマンド入力に集中したりせず、スムーズにプレゼンができそうです。また、良くあるコンソール操作を記録しておくというのにも良さそうです
前提 pythonのパッケージ管理は、進化の歴史がとてもややこしいので混乱を招きがちです。 Web上の情報には古いものも多いです。このため、pythonのパッケージ管理に関するブログ記事等を参考にする場合は、記事の記載日時を確認して、なるべく新しい情報を参考にした方が良いです。古い情報と新しい情報で逆の事が書いてあったりするので、気をつけないと混乱します(例えば、distributeを使え!という情報、distributeを使うな!という情報の両方があったりします)。 先に結論 結局pythonのパッケージ管理には何を使えば良いの?という疑問に対して、手っ取り早く結論を書いてしまうと、 setuptools pip を導入すれば問題ないと思います(2014年7月時点)。 pythonのパッケージ管理について はじめに pythonのパッケージ管理では、setup.py, distutil,
mecabなしで分かち書きができるモジュールTinySegmenter3をPyPIに登録しました. 元々はjsで書かれていたTinySegmenterをpythonに書き直した方がいます.ここ参照 しかし,PyPIにpython3に対応したパッケージが無かったので,作成し公開致しました. インストールの方法 pip install tinysegmenter3 として頂ければインストールできます. 使用例: from tinysegmenter import TinySegmenter segmenter = TinySegmenter() statement = '私はpython大好きStanding Engineerです.' tokenized_statement = segmenter.tokenize(statement) print(tokenized_statement) #
こんばんは! 今回はurllib2とElementTreeというモジュールを使った、 Pythonでの簡単なスクレイピングの方法について書いてみようと思います。 クローリングのような大規模なものになると、 scrapyやBeautifulSoup、Mechanize等のモジュールを使った方が楽ですが、 1ページだけスクレイピングして処理したいなどの場合には こちらの方法が手軽で便利です! 今回は、Wikipediaの職業一覧から職業名を全てスクレイピングして、 コンソールに出力する、というプログラムを書いてみようと思います。 以下がコードになります。 #! /usr/bin/python # -*- coding: utf-8 -*- import urllib2 import xml.etree.ElementTree as etree resp = urllib2.urlopen('h
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く