semvec/pypi-packages huggingface dataset:
grader-purdueece 0.0.3
Python autograder for Purdue ECE department
Requires Python: >=3.7

# Module Interface
This grader can load specified tests in a desired loaction that match a specified pattern then run them against source code in another module. The results are collected in CSV format with configurable overrides for each test. Test runs can also change based on a custom submission name (e.g. student name). If grading the submission fails, it will fallback to grading a sepcified template submission directory. It can load a config file that can rename the submission directory to a custom label and can assign weights to individual tests. The help output for the grader is below:

```
usage: grader [-h] [--submission SUBMISSION] [--tests TESTS] [--test-pattern TEST_PATTERN] [--output OUTPUT] [--log LOG] [--config CONFIG] path

positional arguments:
  path                  Path of the module to grade. Defaults to ./

optional arguments:
  -h, --help            show this help message and exit
  --submission SUBMISSION
                        Submission name to grade.
  --tests TESTS         Path of tests to run. Defaults to ./
  --test-pattern TEST_PATTERN
                        Test name pattern to match. Defaults to "test*.py"
  --output OUTPUT       Output file for scores. Defaults to stdout.
  --log LOG             Log file to use. Defaults to stdout.
  --config CONFIG       Config file to use.
```

# Tests Discovery
Tests to run can be located anywhere using a combination of the `--tests` and `--test-pattern` args. By default, they are searched for under the current directory and match the `test*.py` pattern. Tests are discovered using the [`unittest`](https://docs.python.org/3/library/unittest.html) module.

# Grader Config
The grader config can be specified with the `--config` arg. It is a json file that can specify what happens when a certain test runs or when a certain submission is graded. Individual test configs should be under the `"tests"` map and the key should be of the form: `testFunction (test_filename.TestCaseName)`. Inividual submission configs should be under the `"submissions"` map and match the name of the submission. An example format is below:

```json
{
    "tests": {
        "testSimple1 (test_simple.TestSimpleTestCase)": {
            "name": "Simple Test 1",
            "weight": 2
        }
    },
    "submissions": {
        "submission_name": {
            "name": "custom label here"
        }
    }
}
```
ecdysis 0.3.0
Interface to pyprocessmacro
Requires Python: >=3.7

=======
ecdysis
=======


.. image:: https://img.shields.io/pypi/v/ecdysis.svg
        :target: https://pypi.python.org/pypi/ecdysis

.. image:: https://img.shields.io/travis/datagazing/ecdysis.svg
        :target: https://travis-ci.com/datagazing/ecdysis

.. image:: https://readthedocs.org/projects/ecdysis/badge/?version=latest
        :target: https://ecdysis.readthedocs.io/en/latest/?version=latest
        :alt: Documentation Status



Interface to pyprocessmacro

Features
--------

* Command-line interface
* Handle loading data from common formats (csv, tsv, xlsx, sav, ...)
* Convenience function for examining data
* Save output in familiar PROCESS text format
* Supports most or all pyprocessmacro options

Examples
--------

.. code-block:: console

  $ ecdysis -h
  ...
  $ ecdysis -i data.csv --summarize
  ...
  $ ecdysis -i data.csv -X xvar -M mvar -Y yvar -o results.txt
  ...

Limitations
-----------

* Relies on pandect which relies on pyreadstat, which has issues with
  reading dta (Stata) format files
* Expects variables to be numeric

Credits
-------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
pandect 0.4.0
Simple wrappers to load and convert common data file types
Requires Python: >=3.7

=======
pandect
=======


.. image:: https://img.shields.io/pypi/v/pandect.svg
        :target: https://pypi.python.org/pypi/pandect

.. image:: https://img.shields.io/travis/datagazing/pandect.svg
        :target: https://travis-ci.com/datagazing/pandect

.. image:: https://readthedocs.org/projects/pandect/badge/?version=latest
        :target: https://pandect.readthedocs.io/en/latest/?version=latest
        :alt: Documentation Status



Simple wrappers to load and convert common data file types

Features
--------

* Uses file extension as heuristic to determine input format
* Provides metadata using pyreadstat objects when appropriate
* Supports: csv, tsv, xlsx, sav, dta (unreliable), sqlite3
* Loads data into pandas.DataFrame
* Provides command line utilities: sav2dta, pandect

Examples
--------

Load a data file into a pandas.DataFrame object:

.. code-block:: python

  >>> import pandect
  >>> data, meta = pandect.load(input_file_name)

Save a pandas.DataFrame object as a data file:

.. code-block:: python

  >>> import pandas
  >>> import pandect
  >>> data = pandas.DataFrame([{'a': 1, 'b': 2}, {'a': 3, 'b': 4}])
  >>> pandect.save(data=data, output='out.sav')
  >>>

Save a pandas.DataFrame object as a data file with metadata:

.. code-block:: python

  >>> import pandas
  >>> import pandect
  >>> import pyreadstat
  >>> data = pandas.DataFrame([{'a': 1, 'b': 2}, {'a': 3, 'b': 4}])
  >>> meta = pyreadstat.metadata_container()
  >>> meta.column_names_to_labels = {'a': 'A Label', 'b': 'B Label'}
  >>> pandect.save(data=data, output='out.sav', meta=meta)
  >>>

Convert a data file at the command line:

.. code-block:: console

  $ pandect input.csv output.dta

Convert sav data file to dta data file:

.. code-block:: console

  $ sav2dta some_file.sav

* Derives output file name from input file name (here: `some_file.dta`)
* This is a convenience utility for a common task
* It is basically a special case of the `pandect` utility

Limitations
-----------

* Loading dta files is unreliable (bug in pyreadstat, might segfault)

License
-------

* Free software: MIT license

Documentation
-------------

* https://pandect.readthedocs.io/


Credits
-------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage