mls-api
========
.. image:: https://badge.fury.io/py/mls-api.svg
:target: https://badge.fury.io/py/mls-api
:alt: MLS API Python Package Version
Python library for integrating with `MLS API`_ functionality.
.. _MLS API: https://horisystems.com/mls-api/
Requirements
-------------
Python 2.7 and later.
Setup
------
You can install this package by using the pip tool and installing:
.. code-block:: bash
$ pip install mls-api
Or:
.. code-block:: bash
$ easy_install mls-api
Usage Example
-------------
.. code-block:: python
import mls_api
from dotenv import load_dotenv
import os
## Loads environment variables from .env
load_dotenv('.env')
username = os.getenv('_USERNAME')
password = os.getenv('_PASSWORD')
## Authentication
mls_api.login(username, password)
## Retrieve MLS Real-Time Data
mls_rtd = mls_api.get_rtd()
print(mls_rtd)
## Retrieve MLS Historical Data
mls_historical = mls_api.get_historical_data()
print(mls_historical)
## Retrieve MLS Players Data
limit = 5
offset = 5
mls_players_l = mls_api.get_players(limit=limit)
print(mls_players_l)
mls_players = mls_api.get_players(limit=limit, offset=offset)
print(mls_players)
## Retrieve MLS Assist Data
mls_assists = mls_api.get_assists()
print(mls_assists)
## Retrieve MLS Offence Data
mls_offence = mls_api.get_offence()
print(mls_offence)
## Retrieve MLS Top Scorers Data
mls_top_scorer = mls_api.get_top_scorer()
print(mls_top_scorer)
## Retrieve MLS Teams Data
mls_teams = mls_api.get_teams()
print(mls_teams)
## Retrieve MLS Fixtures Data
mls_fixtures = mls_api.get_fixtures()
print(mls_fixtures)
## Retrieve MLS Standings Data
mls_standings = mls_api.get_standings()
print(mls_standings)
## Retrieve MLS Latest News Data
mls_latest_news = mls_api.get_latest_news()
print(mls_latest_news)
Setting up an MLS API Account
-----------------------------
Sign up for a self-service `user account`_.
.. _user account: https://horisystems.com/mls-api/
Using the MLS API
------------------
You can read the `API documentation`_ to understand what's possible with the MLS API. If you need further assistance, don't hesitate to `contact us`_.
.. _API documentation: https://horisystems.com/docs/mls-api/
.. _contact us: https://horisystems.com/contact/
License
--------
This project is licensed under the `MIT License`_.
.. _MIT License: https://horisystems.com/
Copyright
----------
Copyright |copy| 2020 - 2024 `Hori Systems Limited`_. All Rights Reserved.
.. |copy| unicode:: 0xA9 .. copyright sign
.. _Hori Systems Limited: https://horisystems.com/
Raw data
{
"_id": null,
"home_page": "https://horisystems.com/mls-api/",
"name": "mls-api",
"maintainer": "",
"docs_url": null,
"requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
"maintainer_email": "",
"keywords": "mls,mls api,mls_api,major league soccer,hori,horisystems,hori systems",
"author": "Hori Systems Limited",
"author_email": "support@horisystems.com",
"download_url": "https://files.pythonhosted.org/packages/37/fd/dfb71fac9c15dad03457cd5146035fcec888ddfbbf85dc73a5928562135e/mls-api-2.0.3.tar.gz",
"platform": null,
"description": "mls-api\n========\n\n.. image:: https://badge.fury.io/py/mls-api.svg\n :target: https://badge.fury.io/py/mls-api\n :alt: MLS API Python Package Version\n\nPython library for integrating with `MLS API`_ functionality.\n\n.. _MLS API: https://horisystems.com/mls-api/\n\n\nRequirements\n-------------\n\nPython 2.7 and later.\n\n\nSetup\n------\n\nYou can install this package by using the pip tool and installing:\n\n.. code-block:: bash\n\n\t$ pip install mls-api\n\nOr:\n\n.. code-block:: bash\n\n\t$ easy_install mls-api\n\n\nUsage Example\n-------------\n\n.. code-block:: python\n\n import mls_api\n from dotenv import load_dotenv\n import os\n\n ## Loads environment variables from .env\n load_dotenv('.env')\n\n username = os.getenv('_USERNAME')\n password = os.getenv('_PASSWORD')\n\n ## Authentication\n mls_api.login(username, password)\n\n ## Retrieve MLS Real-Time Data\n mls_rtd = mls_api.get_rtd()\n print(mls_rtd)\n\n ## Retrieve MLS Historical Data\n mls_historical = mls_api.get_historical_data()\n print(mls_historical)\n\n ## Retrieve MLS Players Data\n limit = 5\n offset = 5\n\n mls_players_l = mls_api.get_players(limit=limit)\n print(mls_players_l)\n\n mls_players = mls_api.get_players(limit=limit, offset=offset)\n print(mls_players)\n\n ## Retrieve MLS Assist Data\n mls_assists = mls_api.get_assists()\n print(mls_assists)\n\n ## Retrieve MLS Offence Data\n mls_offence = mls_api.get_offence()\n print(mls_offence)\n\n ## Retrieve MLS Top Scorers Data\n mls_top_scorer = mls_api.get_top_scorer()\n print(mls_top_scorer)\n\n ## Retrieve MLS Teams Data\n mls_teams = mls_api.get_teams()\n print(mls_teams)\n\n ## Retrieve MLS Fixtures Data\n mls_fixtures = mls_api.get_fixtures()\n print(mls_fixtures)\n\n ## Retrieve MLS Standings Data\n mls_standings = mls_api.get_standings()\n print(mls_standings)\n\n ## Retrieve MLS Latest News Data\n mls_latest_news = mls_api.get_latest_news()\n print(mls_latest_news)\n\n\nSetting up an MLS API Account\n-----------------------------\n\nSign up for a self-service `user account`_.\n\n.. _user account: https://horisystems.com/mls-api/\n\n\nUsing the MLS API\n------------------\n\nYou can read the `API documentation`_ to understand what's possible with the MLS API. If you need further assistance, don't hesitate to `contact us`_.\n\n.. _API documentation: https://horisystems.com/docs/mls-api/\n.. _contact us: https://horisystems.com/contact/\n\nLicense\n--------\n\nThis project is licensed under the `MIT License`_. \n\n.. _MIT License: https://horisystems.com/\n\n\nCopyright\n----------\n\nCopyright |copy| 2020 - 2024 `Hori Systems Limited`_. All Rights Reserved.\n\n.. |copy| unicode:: 0xA9 .. copyright sign\n.. _Hori Systems Limited: https://horisystems.com/\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library for integrating with the MLS (Major League Soccer) API.",
"version": "2.0.3",
"project_urls": {
"Bug Tracker": "https://github.com/horisystems/mlsapi-py-sdk/issues",
"Changes": "https://github.com/horisystems/mlsapi-py-sdk/blob/main/CHANGELOG.md",
"Documentation": "https://docs.mlssoccerapi.com/",
"Homepage": "https://horisystems.com/mls-api/",
"Source Code": "https://github.com/horisystems/mlsapi-py-sdk"
},
"split_keywords": [
"mls",
"mls api",
"mls_api",
"major league soccer",
"hori",
"horisystems",
"hori systems"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "75ccb4c9a1f487b65b1f1c0ce1b22c53971c47f2c3db58f3123c16b9e57b2acd",
"md5": "a5431f57afa7ab6bcc5d7b035400b127",
"sha256": "f7d411af051d5c558a8878aa9ccb538e63ab2adfa89ccd2a89476670397c38c3"
},
"downloads": -1,
"filename": "mls_api-2.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a5431f57afa7ab6bcc5d7b035400b127",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
"size": 17986,
"upload_time": "2024-02-23T00:13:42",
"upload_time_iso_8601": "2024-02-23T00:13:42.889143Z",
"url": "https://files.pythonhosted.org/packages/75/cc/b4c9a1f487b65b1f1c0ce1b22c53971c47f2c3db58f3123c16b9e57b2acd/mls_api-2.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "37fddfb71fac9c15dad03457cd5146035fcec888ddfbbf85dc73a5928562135e",
"md5": "38c1398e533970c164497bca802a53e2",
"sha256": "0b0745629d9d1d18a197e4afa5fc038643d76b62b1c7e730d85bac5ade386fb2"
},
"downloads": -1,
"filename": "mls-api-2.0.3.tar.gz",
"has_sig": false,
"md5_digest": "38c1398e533970c164497bca802a53e2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
"size": 15999,
"upload_time": "2024-02-23T00:13:50",
"upload_time_iso_8601": "2024-02-23T00:13:50.563796Z",
"url": "https://files.pythonhosted.org/packages/37/fd/dfb71fac9c15dad03457cd5146035fcec888ddfbbf85dc73a5928562135e/mls-api-2.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-23 00:13:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "horisystems",
"github_project": "mlsapi-py-sdk",
"github_not_found": true,
"lcname": "mls-api"
}