Pre-requisites
- Python 3.8/3.9
- Pip
How to run the code
We have provided scripts to execute the code.
Use run.sh if you are Linux/Unix/macOS Operating systems and run.bat if you are on Windows. Both the files run the commands silently and prints only output from the input file sample_input/input1.txt. You are supposed to add the input commands in the file from the appropriate problem statement.
Internally both the scripts run the following commands
pip install -r requirements.txt- This will install the dependencies mentioned in the requirement.filepython -m geektrust sample_input/input1.txt- This will run the solution passing in the sample input file as the command line argument
If you are providing a solution without using the build file, we want you to name your Main file as geektrust.py. This is the file that will contain your main method.
We expect your program to take the location to the text file as parameter. Input needs to be read from a text file, and output should be printed to the console. The text file will contain only commands in the format prescribed by the respective problem.
Running the code for multiple test cases
Please fill input1.txt and input2.txt with the input commands and use those files in run.bat or run.sh. Replace python -m geektrust sample_input/input1.txt with python -m geektrust sample_input/input2.txt to run the test case from the second file.
How to execute the unit tests
python -m unittest discover will execute the unit test cases.
The unit test coverage is found by the command :
coverage run -m unittest discover
Help
You can refer our help documents here You can read build instructions here
Metadata
Release files for ledger 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ledger-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / ledger-1.0.1-py3-none-any.whl
| Download URL | ledger-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ea32985c1b3ae9fe5c409cf0d95644cfb7e7500281ae8f28642a0c7fcb937b3
|
|
BLAKE2b-256 checksum How to use checksums |
e3b28eb6db0c63890403d109bf566eb92b3fa01a20814f24239da39b04e8e901
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for ledger 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.