tc-marathoner | Testing tool for TopCoder marathon matches
kandi X-RAY | tc-marathoner Summary
kandi X-RAY | tc-marathoner Summary
tc-marathoner is a Python library. tc-marathoner has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install tc-marathoner' or download it from GitHub, PyPI.
Testing tool for TopCoder marathon matches.
Testing tool for TopCoder marathon matches.
Support
Quality
Security
License
Reuse
Support
tc-marathoner has a low active ecosystem.
It has 15 star(s) with 0 fork(s). There are 8 watchers for this library.
It had no major release in the last 6 months.
There are 0 open issues and 3 have been closed. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of tc-marathoner is current.
Quality
tc-marathoner has 0 bugs and 0 code smells.
Security
tc-marathoner has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
tc-marathoner code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
tc-marathoner is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
tc-marathoner releases are not available. You will need to build from source code and install.
Deployable package is available in PyPI.
Build file is available. You can build the component from source.
Installation instructions, examples and code snippets are available.
tc-marathoner saves you 679 person hours of effort in developing the same functionality from scratch.
It has 1573 lines of code, 128 functions and 39 files.
It has medium code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA
kandi has reviewed tc-marathoner and discovered the below as its top functions. This is intended to give you an instant insight into tc-marathoner implemented functionality, and help decide if they suit your requirements.
- Run the experiment
- Start a new process
- Returns the name of a signal
- Get params for visualizer
- Run Marathoner command
- Return a dict of all available commands
- Iterate over all subclasses of a given module
- Iterate over all submodules of a module recursively
- Return a table of tags and their best score
- Kill the solution listener
- Start the listener thread
- Print one or more tables
- Start the marathon server
- Run the solution from the Marathoner
- Runs the solver
- Execute the given command
- Print help for a given command
- Prints available commands
- Handles signal
- Install signal handlers
- Kill the solution
- Return the hash of the file
- Update the source tag
- Test whether the command is pressed
- Split a path into a list
- Clean the solution of the task
Get all kandi verified functions for this library.
tc-marathoner Key Features
No Key Features are available at this moment for tc-marathoner.
tc-marathoner Examples and Code Snippets
No Code Snippets are available at this moment for tc-marathoner.
Community Discussions
No Community Discussions are available at this moment for tc-marathoner.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tc-marathoner
Marathoner is written in Python, so first get some Python at [http://www.python.org](http://www.python.org) (versions 2.6, 2.7 and 3.x are supported). If you have pip (Python package manager) installed, run: ```$ pip install marathoner```. To update Marathoner to newer version, run: ```$ pip install marathoner --upgrade```. Or download the source code from GitHub and from tc-marathoner directory run: ```$ python setup.py install```.
Let me show you how to setup Marathoner for a recent Marathon Match called [ViralInfection](http://community.topcoder.com/longcontest/?module=ViewProblemStatement&compid=49418&rd=16493).
Download the visualizer [tester.jar](http://www.topcoder.com/contest/problem/ViralInfection/ViralInfectionVis.jar). Create a solution that communicates with visualizer as described [here](http://www.topcoder.com/contest/problem/ViralInfection/manual.html) and make sure your solution works by running: ```$ java -jar ViralInfectionVis.jar -exec "<command>" -seed 1```
Run from the command line: ```$ marathoner new ViralInfectionMarat``` Marathoner will create in the current directory a new project directory named *ViralInfectionMarat*, where it will store all the files related to ViralInfection match. **NOTE: It is important that you name your solution ViralInfectionMarat. Otherwise it will not work correctly, because of the communication protocol used in this match.**
Go into newly created project directory and edit marathoner.cfg file. Fill out its contents as described in the comments inside the file. Here is an example of my marathoner.cfg file for this match: ``` [marathoner] visualizer = c:\Mimino\ViralInfection\ViralInfectionVis.jar solution = "c:\Mimino\ViralInfection\ViralInfection.exe" source = c:\Mimino\ViralInfection\ViralInfection.cpp testcase = c:\Mimino\ViralInfection\testcase.txt maximize = true novis = -novis vis = params = -debug -scale 10 cache = true ``` Save and close the file.
While still in the project directory, run from the command line: ```$ marathoner run```. If everything is setup correctly, you should see a welcome message and the command line prompt. Try to run: ``` >>> 1 Running single test 1... Score = 123456.0 Run time: 0.14 New score: 1234567.00 Best score: 123456.00 Relative score: 0.09999 ``` You should also see the visualization for the seed number 1. Close the visualizer and type command ```help``` to show the list of available commands.
Let me show you how to setup Marathoner for a recent Marathon Match called [ViralInfection](http://community.topcoder.com/longcontest/?module=ViewProblemStatement&compid=49418&rd=16493).
Download the visualizer [tester.jar](http://www.topcoder.com/contest/problem/ViralInfection/ViralInfectionVis.jar). Create a solution that communicates with visualizer as described [here](http://www.topcoder.com/contest/problem/ViralInfection/manual.html) and make sure your solution works by running: ```$ java -jar ViralInfectionVis.jar -exec "<command>" -seed 1```
Run from the command line: ```$ marathoner new ViralInfectionMarat``` Marathoner will create in the current directory a new project directory named *ViralInfectionMarat*, where it will store all the files related to ViralInfection match. **NOTE: It is important that you name your solution ViralInfectionMarat. Otherwise it will not work correctly, because of the communication protocol used in this match.**
Go into newly created project directory and edit marathoner.cfg file. Fill out its contents as described in the comments inside the file. Here is an example of my marathoner.cfg file for this match: ``` [marathoner] visualizer = c:\Mimino\ViralInfection\ViralInfectionVis.jar solution = "c:\Mimino\ViralInfection\ViralInfection.exe" source = c:\Mimino\ViralInfection\ViralInfection.cpp testcase = c:\Mimino\ViralInfection\testcase.txt maximize = true novis = -novis vis = params = -debug -scale 10 cache = true ``` Save and close the file.
While still in the project directory, run from the command line: ```$ marathoner run```. If everything is setup correctly, you should see a welcome message and the command line prompt. Try to run: ``` >>> 1 Running single test 1... Score = 123456.0 Run time: 0.14 New score: 1234567.00 Best score: 123456.00 Relative score: 0.09999 ``` You should also see the visualization for the seed number 1. Close the visualizer and type command ```help``` to show the list of available commands.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page