acshell


Nameacshell JSON
Version 2.2.1 PyPI version JSON
download
home_pagehttps://www.github.com/tani-cat/atcoder-shell
Summarythe commandline shell for python and pypy AtCoder user
upload_time2023-09-09 02:58:22
maintainer
docs_urlNone
authortani-cat
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements appdirs beautifulsoup4 lxml requests tabulate llvmlite numpy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AtCoder Shell

This is the shell library to execute AtCoder submission on your commandline, for Python/PyPy user.

## Basic operation

If you want to know more information about commands, execute `acsh help`.
(Note that the command results are output in Japanese.)

### 1. Installation

```shell
pip install acshell
```

### 2. Login

```shell
acsh login
# acsh lg
```

Your account credentials are stored for a certain period of time.

### 3. Create "Contest folder"

```shell
acsh load agc001
# acsh ld agc001
```

The "contest folder" of specified contest is created where you are currently. Each task folder is generated in the contest folder.

### 4. Write your code

Implement the answers in the file like `agc001_a.py` created in the folder for each task.

### 5. Run your codes with published testcases

Confirm the formats of the command arguments below.

```shell
acsh test [task] [num] [lang]
acsh check [task] [lang]
# acsh t
# acsh c
```

| option | required | value format |
| :-- | :-: | :-- |
| task | Yes | task code such as `A`, `B` |
| num | Yes (in `test`) | number of testcase as integer |
| lang | x | language(`python` or `pypy`) |

### 6. Submit your codes

Confirm the formats of the command arguments below. Unlike the test running, you have to specify which language you submit codes as.

```shell
acsh submit [task] [lang]
# acsh s
```

| option | required | value format |
| :-- | :-: | :-- |
| task | Yes | task code such as `A`, `B` |
| lang | **Yes** | language(`python` or `pypy`) |

### 7. Confirm results of your submission

```shell
acsh recent  # for recent submission
acsh status  # for your contest scores
# acsh rc
# acsh rs
```

## Additional Operations

### Setup your cheat sheets

Follow the steps below to use your own prepared cheat-sheet codes,
Please check the arguments with the `acsh help` command.

#### Setup

1. open the config folder by executing `acsh edit-cheat` / `acsh ec`.
2. write your cheat sheets, and place the folder opened.

#### Usage

1. execute `acsh add-cheat <task_code> <cheat_name (without extension)>` so add the specified cheat file in the task folder.
2. write `from <filename> import <func/class name>` in your code.
3. The cheat files will be merged with main code file when you submit.

### Setup initial codes

If you want to set a template code, add `initial.py` in the cheat-sheet setup shown above.

### Pyenv management

If you want to run codes by pypy, you should use pyenv for python version management.
(This package can be run on python3.8, but you should use 3.11 for the exact debug in contests.)

1. Install the latest version of `3.11.*` and `pypy3.10-7.3.*`.
2. execute the command below.

```shell
pyenv A B C
```

- A: The Python version you usually use
- B: The version of installed `3.11.*`
- C: The version of installed `pypy3.10-7.3.*`

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.github.com/tani-cat/atcoder-shell",
    "name": "acshell",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "tani-cat",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/b5/5e/a8478102b71b3899d9e93186cb39d1d963a204935a6b562ad96990088801/acshell-2.2.1.tar.gz",
    "platform": null,
    "description": "# AtCoder Shell\n\nThis is the shell library to execute AtCoder submission on your commandline, for Python/PyPy user.\n\n## Basic operation\n\nIf you want to know more information about commands, execute `acsh help`.\n(Note that the command results are output in Japanese.)\n\n### 1. Installation\n\n```shell\npip install acshell\n```\n\n### 2. Login\n\n```shell\nacsh login\n# acsh lg\n```\n\nYour account credentials are stored for a certain period of time.\n\n### 3. Create \"Contest folder\"\n\n```shell\nacsh load agc001\n# acsh ld agc001\n```\n\nThe \"contest folder\" of specified contest is created where you are currently. Each task folder is generated in the contest folder.\n\n### 4. Write your code\n\nImplement the answers in the file like `agc001_a.py` created in the folder for each task.\n\n### 5. Run your codes with published testcases\n\nConfirm the formats of the command arguments below.\n\n```shell\nacsh test [task] [num] [lang]\nacsh check [task] [lang]\n# acsh t\n# acsh c\n```\n\n| option | required | value format |\n| :-- | :-: | :-- |\n| task | Yes | task code such as `A`, `B` |\n| num | Yes (in `test`) | number of testcase as integer |\n| lang | x | language(`python` or `pypy`) |\n\n### 6. Submit your codes\n\nConfirm the formats of the command arguments below. Unlike the test running, you have to specify which language you submit codes as.\n\n```shell\nacsh submit [task] [lang]\n# acsh s\n```\n\n| option | required | value format |\n| :-- | :-: | :-- |\n| task | Yes | task code such as `A`, `B` |\n| lang | **Yes** | language(`python` or `pypy`) |\n\n### 7. Confirm results of your submission\n\n```shell\nacsh recent  # for recent submission\nacsh status  # for your contest scores\n# acsh rc\n# acsh rs\n```\n\n## Additional Operations\n\n### Setup your cheat sheets\n\nFollow the steps below to use your own prepared cheat-sheet codes,\nPlease check the arguments with the `acsh help` command.\n\n#### Setup\n\n1. open the config folder by executing `acsh edit-cheat` / `acsh ec`.\n2. write your cheat sheets, and place the folder opened.\n\n#### Usage\n\n1. execute `acsh add-cheat <task_code> <cheat_name (without extension)>` so add the specified cheat file in the task folder.\n2. write `from <filename> import <func/class name>` in your code.\n3. The cheat files will be merged with main code file when you submit.\n\n### Setup initial codes\n\nIf you want to set a template code, add `initial.py` in the cheat-sheet setup shown above.\n\n### Pyenv management\n\nIf you want to run codes by pypy, you should use pyenv for python version management.\n(This package can be run on python3.8, but you should use 3.11 for the exact debug in contests.)\n\n1. Install the latest version of `3.11.*` and `pypy3.10-7.3.*`.\n2. execute the command below.\n\n```shell\npyenv A B C\n```\n\n- A: The Python version you usually use\n- B: The version of installed `3.11.*`\n- C: The version of installed `pypy3.10-7.3.*`\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "the commandline shell for python and pypy AtCoder user",
    "version": "2.2.1",
    "project_urls": {
        "Homepage": "https://www.github.com/tani-cat/atcoder-shell"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5d0ee4629cf4183ed5414a50fdf4d171f4db9e05c86088b3975c7956af6b6d5c",
                "md5": "0216c58a9477ec15fd385bc306d035c0",
                "sha256": "56e1ce64dd905fd1821365210f38dd783b99110f7d5c04230115b06a4d5024ac"
            },
            "downloads": -1,
            "filename": "acshell-2.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0216c58a9477ec15fd385bc306d035c0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 21506,
            "upload_time": "2023-09-09T02:58:20",
            "upload_time_iso_8601": "2023-09-09T02:58:20.454033Z",
            "url": "https://files.pythonhosted.org/packages/5d/0e/e4629cf4183ed5414a50fdf4d171f4db9e05c86088b3975c7956af6b6d5c/acshell-2.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b55ea8478102b71b3899d9e93186cb39d1d963a204935a6b562ad96990088801",
                "md5": "df9efa16f00c55a925acd04fc396df1e",
                "sha256": "d0dd579350b99bc1b8c281c9eb4fb88dbf93c9d1c4b5d4467613ada47f882a84"
            },
            "downloads": -1,
            "filename": "acshell-2.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "df9efa16f00c55a925acd04fc396df1e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 17157,
            "upload_time": "2023-09-09T02:58:22",
            "upload_time_iso_8601": "2023-09-09T02:58:22.215625Z",
            "url": "https://files.pythonhosted.org/packages/b5/5e/a8478102b71b3899d9e93186cb39d1d963a204935a6b562ad96990088801/acshell-2.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-09 02:58:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tani-cat",
    "github_project": "atcoder-shell",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "appdirs",
            "specs": [
                [
                    "~=",
                    "1.4.4"
                ]
            ]
        },
        {
            "name": "beautifulsoup4",
            "specs": [
                [
                    "~=",
                    "4.11"
                ]
            ]
        },
        {
            "name": "lxml",
            "specs": [
                [
                    ">=",
                    "4.9"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.28"
                ]
            ]
        },
        {
            "name": "tabulate",
            "specs": [
                [
                    ">=",
                    "0.8.10"
                ]
            ]
        },
        {
            "name": "llvmlite",
            "specs": [
                [
                    "==",
                    "0.31.0"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    "~=",
                    "1.18.2"
                ]
            ]
        }
    ],
    "lcname": "acshell"
}
        
Elapsed time: 0.24545s