GithubHelp home page GithubHelp logo

coderick14 / acedit Goto Github PK

View Code? Open in Web Editor NEW
75.0 75.0 11.0 1007 KB

A command line tool to run your code against sample test cases. Without leaving the terminal :)

Home Page: https://pypi.org/project/ACedIt/

License: MIT License

Python 100.00%
atcoder codechef codeforces command-line-tool competitive-programming hackerrank python3 spoj

acedit's People

Contributors

coderick14 avatar igorjan94 avatar lakshmanaram avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

acedit's Issues

[bug-fix] Collections Callable Attribute Error

Description

  • collections.Callable is not supported for python versions 3.10+.

Steps To Reproduce

  • Running the command acedit --run {filename}.cpp -c {contest_number} -p {division} results in the following error:
    • AttributeError: module 'collections' has no attribute 'Callable'

Solution

  • collections.Callable has been moved to collections.abc.Callable in python 3.10+. A hacky solution is to add the reference back to collections before importing the problem library.

Source

Refactor redundant code in util.py

Extract methods scrape_problem, scrape_contest and handle_batch_requests into a base class and make the specific platform classes inherit from it.

Also, remove dependency on grequests, since it breaks requests depending on the order of import (see issue). The order of imports could be reversed, but the same can be implemented with threading and has the added advantage of reducing the dependency on a third party library.

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.