Giter Site home page Giter Site logo

yatt / aojtools Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 6.0 78 KB

aojtools is a library and toolset for aoj, aizu online judge system (http://judge.u-aizu.ac.jp/onlinejudge/) including library for accessing API transparently, submitting solution to server; Aizu Online Judge APIのPythonバインディングです。サブミットツール等付き。

Python 77.17% JavaScript 22.83%

aojtools's People

Contributors

bgnori avatar ichyo avatar snuke avatar yatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aojtools's Issues

PyPIへの登録

v0.2のPyPIへの登録。releaseブランチにマージした段階で行う

version v0.2.1 is broken; cannot install via pip

v0.2.1 is broken distribution, and cannot install via pip.

(aa)$ pip install aojtools
Downloading/unpacking aojtools
Downloading aojtools-0.2.1.linux-x86_64.tar.gz
Running setup.py egg_info for package aojtools
Traceback (most recent call last):
File "", line 16, in
IOError: [Errno 2] No such file or directory: '/home/yatt/sandbox/aa/build/aojtools/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 16, in

IOError: [Errno 2] No such file or directory: '/home/yatt/sandbox/aa/build/aojtools/setup.py'

Command python setup.py egg_info failed with error code 1 in /home/yatt/sandbox/aa/build/aojtools
Storing complete log in /tmp/tmpdPqdgN

/tmp/tmpdPqdgN is:


/home/yatt/sandbox/aa/bin/pip run on Sat May 18 13:56:55 2013
Downloading/unpacking aojtools

Getting page https://pypi.python.org/simple/aojtools/
URLs to search for versions for aojtools:

IOError: [Errno 2] No such file or directory: '/home/yatt/sandbox/aa/build/aojtools/setup.py'

Command python setup.py egg_info failed with error code 1 in /home/yatt/sandbox/aa/build/aojtools

Exception information:
Traceback (most recent call last):
File "/home/yatt/sandbox/aa/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py", line 139, in main
status = self.run(options, args)
File "/home/yatt/sandbox/aa/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py", line 266, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/yatt/sandbox/aa/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1057, in prepare_files
req_to_install.run_egg_info()
File "/home/yatt/sandbox/aa/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 236, in run_egg_info
command_desc='python setup.py egg_info')
File "/home/yatt/sandbox/aa/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/util.py", line 662, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /home/yatt/sandbox/aa/build/aojtools

v0.1.6

(aa)$ pip install aojtools==0.1.6
Downloading/unpacking aojtools==0.1.6
Downloading aojtools-0.1.6.tar.gz
Running setup.py egg_info for package aojtools

Installing collected packages: aojtools
Running setup.py install for aojtools
changing mode of build/scripts-2.7/diff.py from 664 to 775
changing mode of build/scripts-2.7/aojwhatis from 664 to 775
changing mode of build/scripts-2.7/aojwhois from 664 to 775
changing mode of build/scripts-2.7/aojcategories from 664 to 775
changing mode of build/scripts-2.7/aojsubmit from 664 to 775

changing mode of /home/yatt/sandbox/aa/bin/diff.py to 775
changing mode of /home/yatt/sandbox/aa/bin/aojwhatis to 775
changing mode of /home/yatt/sandbox/aa/bin/aojwhois to 775
changing mode of /home/yatt/sandbox/aa/bin/aojcategories to 775
changing mode of /home/yatt/sandbox/aa/bin/aojsubmit to 775

Successfully installed aojtools
Cleaning up...

構成管理の見直し

バージョン事にディレクトリを切るのではなく、master/develop/開発ブランチによる構成に整理する。

support new languages

新しく仕様可能となった言語のサポート。

1.C/C++/Javaのみ許可していた拡張子の妥当性チェックの修正
2.各問題で利用可能な言語かどうかの妥当性チェック処理の追加

新しく追加された言語:
C++11
C#
D
Ruby
Python
PHP
JavaScript

cannot install v0.2

setup.py is not valid.
some install scripts does not exists any more in v0.2

alluserの検索条件によって例外が発生する

例:http://judge.u-aizu.ac.jp/onlinejudge/webservice/user_list?solved_min=20&solved_max=200

レスポンスのエンコーディングは×UTF8 ○Windows-1252
aojtools.parse.fromwebでUnicode化して処理する必要がある

#! /usr/bin/python2.7
# coding: utf-8

import urllib
from xml.etree.ElementTree import fromstring

url = 'http://judge.u-aizu.ac.jp/onlinejudge/webservice/user_list?solved_min=20&solved_max=200'                                
cont = urllib.urlopen(url).read()
#cont = cont.decode('cp1252')                                                                                                  
print fromstring(cont)                                                                                                         
"""                                                                                                                            
Traceback (most recent call last):  File "3confirm.py", line 10, in <module>
    print fromstring(cont)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1301, in XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1643, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1507, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 34914, column 3"""  

aojprepareの動作の妥当性

aojprepareコマンドは

  • in/out sampleのファイルを固定のファイル名で作成する
  • C言語のみ対応
  • テンプレート文字列は埋め込み

という機能になっているが、v0.2でも引き続き同じ動作をするべきか。

license?

ライセンスに関する記述が無い。
MITライセンスの採用を検討。
どうすれば対応したことになるのか調査。

aojsubmitの動作不良

なんか動かん。submit処理までは実行されているものの、そのあとのstatus logの取得で何がしかのエラーが発生している様子。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.