semvec/pypi-packages huggingface dataset:
package-py-test 0.0.3
test client
License: MIT
Requires Python: ~=3.6

# Python Client Package

This repository contains the Python Client Package, a powerful tool designed for developers to simplify interactions with our services.

## Installation

To install the Python Client Package, you can use pip:
## Usage

Here's a basic example of how to use the Python Client Package:
Please replace `<your_api_key>` with your actual API key.

## Testing

To run tests:
## Contributions

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

## License

This project is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for more details.
pydomotic 1.4.1
Python library for home automation execution, enabling seamless control and management of your IoT devices
License: MIT
Requires Python: <4,>=3.8
Keywords: iot, python, home, automation, smart, domotic

# pydomotic

[![PyPI version](https://badge.fury.io/py/pydomotic.svg)](https://badge.fury.io/py/pydomotic)

A Python library for home automation execution, enabling seamless control and
management of your IoT devices.

_"Domotics": The automatic control of home appliances by electronic systems.
Contraction of domestic robotics, from the Latin domus ("home"), and robotics._

## Getting Started

1. Install `pydomotic` in your environment.

    ```bash
    $ pip install pydomotic
    ```

1. Create your `pydomotic.yml` configuration file where you will define your
devices and automations.

    ```yaml
    # pydomotic.yml

    devices:
      fan:
        description: fan switch
        provider: noop
        id: '012'
      thermometer:
        description: temperature sensor
        provider: noop
        id: '345'

    automations:
      fan:
        enabled: true
        components:
          - if:
              thermometer:
                temp: '>75'
            then:
              turn-on: fan
            else:
              turn-off: fan
    ```

1. Running the following will check each trigger and execute any actions.

    ```bash
    $ python -m pydomotic
    ```

Note that each configured provider will require separate installation of its specific dependencies. For installing these dependencies and full configuration documentation, see [CONFIGURATION.md](https://github.com/purple4reina/pydomotic/blob/main/docs/CONFIGURATION.md)

For more details on deployment options, see [DEPLOYING.md](https://github.com/purple4reina/pydomotic/blob/main/docs/DEPLOYING.md)

## Glossary

**trigger:** A small piece of code which evaluates to either true or false.
Usually it calls on devices or 3rd party APIs to make this determination.

**action:** A small piece of code which is run when a trigger fires. Usually
this is managing device state like turning a lightbulb on or off. When
configured, it can be designated as a "then" action or an "else" action.

**provider:** The third party which owns the API for a set of devices. The
manufacturer of a device will usually provide this API.

**device:** Any IoT device which can be controled with a 3rd party API managed
by a provider.

**sensor:** A device or 3rd party API which senses information about the
physical world around it. For example, a smart lightbulb or REST based current
weather API.

**component:** A grouping of triggers and actions. When all triggers evaluate
to true, its "then" actions will be run. When any trigger evaluates to false,
its "else" actions will be run.

**handler:** The code used to run a set of components. This is the main
entrypoint to the `pydomotic` system.

**parser:** The code used to read the configuration yaml and transform it into
a list of components.
eliteprospect-scraper 1.2
Functions to scrape ice hockey data from eliteprospects
License: MIT
Keywords: ice hockey, scraping, sport analytics, eliteprospects

# eliteprospect_scraper
Package to scrape ice hockey data from eliteprospect.com. 

My aim is to keep the package up-to-date so that it works also when the webpage structure is changing. 
If something is not working please reach out so that we can fix it.  

Please only use collected data for personal use - there are real APIs for professional usage of eliteprospects data.

## Getting started
Install the package with pip  
```pip install eliteprospect_scraper```

Import module
```import eliteprospect.eliteprospect_scraper as ep```

Show function descriptions with   
```help(ep)```

## Functions
Descriptions of the functions in the package.  

### getPlayers(league, year)
Get all players for a specific year and league from the page with structure
'https://www.eliteprospects.com/league/' + league + '/stats/' + year 
Example: https://www.eliteprospects.com/league/shl/stats/2016-2017

The function takes input parameters league and year 
* League: valid league [from eliteprospects](https://www.eliteprospects.com/leagues)
* year: valid combination of year in format 2015-2016, 2016-2017 etc.  

Example:  
```getPlayers('shl', '2015-2016')```  

The page contains pagination, and the function loops over 10 pages.
This is typically enough to extract all players. 

### getGoalies(league, year)
Same as getPlayers, but returns dataframe with goalies. 

### getPlayerMetadata(dfplayers)
Create dataframe with metadata by players.  
Input is dataframe created with function getPlayers 

### getPlayerStats(playerlinks)
Create dataframe with all statistics [from playerpages](https://eliteprospects.com/player/2050/mattias-ritola).  
Takes a series of playerlinks as input. Playerlinks are also included in return output from ```getPlayerMetadata``` 

```ep.getPlayerStats(["https://eliteprospects.com/player/2050/mattias-ritola"])```

### dataprep_players(playerstats, league_mapping, players):
```dataprep_players(playerstats, league_mapping, players)```
        Takes series of playerlinks to eliteprospect-profiles, 
        Return dataframe with stats by player and season


## Example Notebook
[See this notebook](https://github.com/msjoelin/eliteprospect_scraper/blob/master/sample_workbook.ipynb) for examples of how to use the package, and in what order you can run the functions. 


# eliteprospect_scraper
Package to scrape hockey data from eliteprospect

## [1.2] - 2024-09-12
### Added
- New function getGoalies(), to extract also Goaltender links similar to getPlayers(). 

### Fixed
- The getPlayers() now accepts input league "Hockeyallsvenskan" (swedish 2nd league) instead of "Allsvenskan". 
Allsvenskan is a legacy name used before 2012 season.