semvec/pypi-packages huggingface dataset:
universities 1.1.0
Search a large university database for basic information.
License: MIT
Requires Python: >=2.6, <4
Keywords: university data search api

universities
============

|PyPI|

Python package to search for basic university information. This packages
obtains information from
`Hipo/university-domains-list <https://github.com/Hipo/university-domains-list>`__\ ’s
database. It is fully compatible with Python 2.6 and up.

Installation
------------

Your preference should be to use PyPi: ``pip install universities``

Source and wheel distributions are available in the releases tab as
well.

Usage
-----

.. code:: python

   import universities

   uni = universities.API() # can specify encoding for use in Python 2

   canadian = uni.search(country = "Canada")
   only_mit = uni.search(domain = "mit.edu")
   all_data = uni.get_all()
   waterloo = uni.lucky(name = "Waterloo") # As in "I'm feeling lucky"

Available Functions
-------------------

-  ``universities.search`` searches the entire database for universities
   matching the specified critera. You may filter by ``name``,
   ``domain`` or ``country`` as arguments to ``search``. This returns a
   list of ``universities.models.University`` objects.
-  ``universities.lucky`` is an alias for ``search`` which only returns
   the first result of the search. All the same parameters are
   available, and a single ``universities.models.University`` is
   returned.
-  ``universities.get_all`` returns all of the entries in the database,
   in the same format as ``search``. In fact, this is simply an alias
   for ``search`` that uses no arguments.

Any query which reurns multiple objects will return a Generator.

Models
------

-  ``universities.models.University`` is the basic model returned in all
   requests. It contains six fields:

   -  ``name``: The name of the university.
   -  ``domains``: A list of domain names the university uses (for
      emails, etc).
   -  ``web_pages``: A list of web pages associated with the university.
   -  ``country_code``: The two-letter ISO-3166 country code where the
      university is located.
   -  ``stateprov``: The state or province the university is located.
      This is usually not populated.
   -  ``country``: The full country name where the university is
      located.

Requirements
------------

The only requirement is ``requests``.

Development
-----------

1. Clone/fork the git repository.
2. ``cd`` to the directory and install the requirements if necessary:
   ``pip install -r requirements.txt``
3. Edit to your heart’s content!
4. If you wish to contribute, push your changes to GitHub on your own
   fork and make a pull request.

Note: Any contributions should be made following the PEP8 standard.

.. |PyPI| image:: https://img.shields.io/pypi/v/universities.svg?style=flat-square
   :target: https://pypi.python.org/pypi/universities
typeshell-cli 0.1.2
Typing test CLI tool.
License: MIT
Requires Python: >=3.8

# typeshell-cli

## Description
typeshell-cli is a Python command-line-interface tool that was written as a proof-of-concept of [pytyper](https://github.com/greysonDEV/pytyper), a Python typing test package.

## Installation
```
pip install typeshell
```

## Usage

#### Basic Usage
```
typeshell [-h] [-V] [-v] create count {proverbs, shakespeare}
```

#### Positional Arguments
```
create                 create typing session
count                  number of prompts in session
{proverbs, shakespeare}
                       type of prompts in session
```

#### Optional Arguments
```
-h, --help             show this help message and exit
-V, --version          show program version
-v, --verbose          increase output verbosity
```

#### Examples

To create a typing session with 3 proverbs:
```
typeshell create 3 proverbs
```

A confirmation input is needed before the typing session begins:
```
*-------[Generating session]-------*
              Prompts:              
                 3                  
               Type:                
              proverbs              
*------[Press enter to begin]------*
```

When the session begins, the shell window will be cleared, only displaying the prompt and space for an input:

```
Grief divided is made lighter.

```

Be aware, the timer starts immediately after pressing enter. To exit the current session, stop the shell processes via `KeyboardInterrupt`.

#### Output

Upon finishing a session, the average statistics for that session will be visible:
```
*-------[Finished session]-------*
Average statistics:

Gross-WPM: 71.978
Net-WPM  : 58.446
Accuracy : 0.95
Errors   : 2.334
Time     : 8.102
*----------------------------------*
```

Specifying `--verbose` when creating a typing session will provide an output of each prompt with the user's input, along with an additional line which indicates the errors in the user's input.
```
> Grief divided is made lighter.
$ Grief divided is made lighter.
                                
> A ship in the harbor is safe, but that is not what a ship is for.
$ A ship in the harbor is safe, hut that is not what a ship is for
                                ^                                 ^
> Every man is the architect of his destiny.
$ Ebery man is the architext of his deinrny.
   ^                      ^           ^^^  
```

## License
typeshell is licensed under the [MIT](https://github.com/greysonDEV/typeshell-cli/blob/main/LICENSE) License.