Skip to content

Commit

Permalink
Define directory structure. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyandtheworld authored and deshraj committed May 11, 2018
1 parent ea29cf5 commit 82dc856
Show file tree
Hide file tree
Showing 19 changed files with 136 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
# EvalAI-CLI
Official EvalAI APIs

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.

## Setting up EvalAI-CLI

Setting up Virtual Environment.

```
$ cd EvalAI-CLI
$ virtualenv -v python3 venv
New python executable in venv/bin/python
Installing setuptools, pip............done.
```

Starting Venv.

`$ . venv/bin/activate`

Installing your package locally.

`pip install --editable . `
Empty file added docs/README.md
Empty file.
Empty file added evalai/__init__.py
Empty file.
9 changes: 9 additions & 0 deletions evalai/auth.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import click

from click import echo


@click.command()
def auth():
"""Example script."""
echo('Hello Auth!')
9 changes: 9 additions & 0 deletions evalai/challenges.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import click

from click import echo


@click.command()
def challenges():
"""Example script."""
echo('Hello Challenges!')
22 changes: 22 additions & 0 deletions evalai/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import click

from click import echo

from .auth import auth
from .challenges import challenges
from .submissions import submissions
from .teams import teams


@click.group(invoke_without_command=True)
@click.pass_context
def main(ctx):
if ctx.invoked_subcommand is None:
echo('I was invoked without subcommand')
else:
echo('I am about to invoke %s' % ctx.invoked_subcommand)

main.add_command(auth)
main.add_command(challenges)
main.add_command(submissions)
main.add_command(teams)
9 changes: 9 additions & 0 deletions evalai/submissions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import click

from click import echo


@click.command()
def submissions():
"""Example script."""
echo('Hello Submissions!')
9 changes: 9 additions & 0 deletions evalai/teams.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import click

from click import echo


@click.command()
def teams():
"""Example script."""
echo('Hello Teams!')
Empty file added evalai/urls.py
Empty file.
Empty file added evalai/utils/auth.py
Empty file.
Empty file added evalai/utils/challenges.py
Empty file.
Empty file added evalai/utils/submissions.py
Empty file.
Empty file added evalai/utils/teams.py
Empty file.
Empty file added evalai/utils/urls.py
Empty file.
57 changes: 57 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/usr/bin/env python
from setuptools import setup, find_packages


PROJECT = 'evalai'


long_description = \
'https://github.com/Cloud-CV/evalai_cli/blob/master/README.md'

setup(
name=PROJECT,
version='1.0',

description='Use EvalAI through the CLI!',

author='Cloud-CV',
author_email='[email protected]',

url='https://github.com/Cloud-CV/evalai_cli',
download_url='https://github.com/Cloud-CV/evalai_cli/tarball/master',

classifiers=['Development Status :: 1 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Intended Audience :: Developers',
'Environment :: Console',
],

platforms=['Any'],

scripts=[],

provides=[],
install_requires=[
'click==6.7',
'pandas==0.22.0',
'pylsy==3.6',
'requests==2.18.4',
'responses==0.9.0',
],

namespace_packages=[],
packages=find_packages(),
include_package_data=True,

entry_points=
'''
[console_scripts]
evalai = evalai.main:main
''',

zip_safe=False,
)
Empty file added tests/test_auth.py
Empty file.
Empty file added tests/test_challenges.py
Empty file.
Empty file added tests/test_submissions.py
Empty file.
Empty file added tests/test_urls.py
Empty file.

0 comments on commit 82dc856

Please sign in to comment.