Comments (7)
了解です。
自分はいつか時間がある時にこのコードを書き直す予定なのでその時にTypeHintsをやろうと思います。
PRを出してくれるともちろん嬉しいです。
from niconico-dl.
TypedDict
以外はほとんど実装することができました!
from niconico-dl.
結構できてきました。
型ヒントをつけてみたのですがどうでしょうか?
rewriteブランチにあります。
from niconico-dl.
@y-chan
現在のniconico_dl
のコードはあまり良いコードと言えなく書き直したいのと、クッキーを使ったログインが必要なAPIへのリクエストなどもしたいのでニコニコ全体を対象としたniconico.py
というライブラリを作りたいと思います。
そこでは動画のダウンロード以外にもマイリスト取得なども作り型補完がしっかり効くようにしたいと思います。
リポジトリ:https://github.com/tasuren/niconico.py
from niconico-dl.
@y-chan
niconico.pyでダウンロードとマイリストの取得ができるようにし、pypiにリリースをしました。
また、大体の型ヒントをつけています。
(不完全ですが動画タイトル等の最低限のものは実装済みです。)
https://github.com/tasuren/niconico.py
それともうniconico_dlの開発はしないため、このリポジトリは後日アーカイブします。
from niconico-dl.
良いと思います!
dictに関してはさらに詳細なTypeDictという定義を作ることができます。
これを作るのは非常に面倒だと思いますし、こちらで作りかけていたものがあるので、PRさせてもらいますね。
from niconico-dl.
ありがとうございます!
了解です。
from niconico-dl.
Related Issues (3)
- heartbeatが動いていない HOT 5
- 提案:mylist取得機能の追加 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from niconico-dl.