Skip to content

Commit 82dc856

Browse files
guyandtheworlddeshraj
authored andcommitted
Define directory structure. (#1)
1 parent ea29cf5 commit 82dc856

19 files changed

+136
-1
lines changed

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
11
# EvalAI-CLI
2-
Official EvalAI APIs
2+
3+
Official Command Line utility to use EvalAI in your terminal. This package offers almost all of the full suite of features available on the website withing your terminal.
4+
5+
## Setting up EvalAI-CLI
6+
7+
Setting up Virtual Environment.
8+
9+
```
10+
$ cd EvalAI-CLI
11+
$ virtualenv -v python3 venv
12+
New python executable in venv/bin/python
13+
Installing setuptools, pip............done.
14+
```
15+
16+
Starting Venv.
17+
18+
`$ . venv/bin/activate`
19+
20+
Installing your package locally.
21+
22+
`pip install --editable . `

docs/README.md

Whitespace-only changes.

evalai/__init__.py

Whitespace-only changes.

evalai/auth.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import click
2+
3+
from click import echo
4+
5+
6+
@click.command()
7+
def auth():
8+
"""Example script."""
9+
echo('Hello Auth!')

evalai/challenges.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import click
2+
3+
from click import echo
4+
5+
6+
@click.command()
7+
def challenges():
8+
"""Example script."""
9+
echo('Hello Challenges!')

evalai/main.py

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import click
2+
3+
from click import echo
4+
5+
from .auth import auth
6+
from .challenges import challenges
7+
from .submissions import submissions
8+
from .teams import teams
9+
10+
11+
@click.group(invoke_without_command=True)
12+
@click.pass_context
13+
def main(ctx):
14+
if ctx.invoked_subcommand is None:
15+
echo('I was invoked without subcommand')
16+
else:
17+
echo('I am about to invoke %s' % ctx.invoked_subcommand)
18+
19+
main.add_command(auth)
20+
main.add_command(challenges)
21+
main.add_command(submissions)
22+
main.add_command(teams)

evalai/submissions.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import click
2+
3+
from click import echo
4+
5+
6+
@click.command()
7+
def submissions():
8+
"""Example script."""
9+
echo('Hello Submissions!')

evalai/teams.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import click
2+
3+
from click import echo
4+
5+
6+
@click.command()
7+
def teams():
8+
"""Example script."""
9+
echo('Hello Teams!')

evalai/urls.py

Whitespace-only changes.

evalai/utils/auth.py

Whitespace-only changes.

evalai/utils/challenges.py

Whitespace-only changes.

evalai/utils/submissions.py

Whitespace-only changes.

evalai/utils/teams.py

Whitespace-only changes.

evalai/utils/urls.py

Whitespace-only changes.

setup.py

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/usr/bin/env python
2+
from setuptools import setup, find_packages
3+
4+
5+
PROJECT = 'evalai'
6+
7+
8+
long_description = \
9+
'https://github.com/Cloud-CV/evalai_cli/blob/master/README.md'
10+
11+
setup(
12+
name=PROJECT,
13+
version='1.0',
14+
15+
description='Use EvalAI through the CLI!',
16+
17+
author='Cloud-CV',
18+
author_email='[email protected]',
19+
20+
url='https://github.com/Cloud-CV/evalai_cli',
21+
download_url='https://github.com/Cloud-CV/evalai_cli/tarball/master',
22+
23+
classifiers=['Development Status :: 1 - Alpha',
24+
'Programming Language :: Python',
25+
'Programming Language :: Python :: 2',
26+
'Programming Language :: Python :: 2.7',
27+
'Programming Language :: Python :: 3',
28+
'Programming Language :: Python :: 3.4',
29+
'Intended Audience :: Developers',
30+
'Environment :: Console',
31+
],
32+
33+
platforms=['Any'],
34+
35+
scripts=[],
36+
37+
provides=[],
38+
install_requires=[
39+
'click==6.7',
40+
'pandas==0.22.0',
41+
'pylsy==3.6',
42+
'requests==2.18.4',
43+
'responses==0.9.0',
44+
],
45+
46+
namespace_packages=[],
47+
packages=find_packages(),
48+
include_package_data=True,
49+
50+
entry_points=
51+
'''
52+
[console_scripts]
53+
evalai = evalai.main:main
54+
''',
55+
56+
zip_safe=False,
57+
)

tests/test_auth.py

Whitespace-only changes.

tests/test_challenges.py

Whitespace-only changes.

tests/test_submissions.py

Whitespace-only changes.

tests/test_urls.py

Whitespace-only changes.

0 commit comments

Comments
 (0)