summaryrefslogtreecommitdiff
path: root/python-phylm.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-phylm.spec')
-rw-r--r--python-phylm.spec323
1 files changed, 323 insertions, 0 deletions
diff --git a/python-phylm.spec b/python-phylm.spec
new file mode 100644
index 0000000..a1756fe
--- /dev/null
+++ b/python-phylm.spec
@@ -0,0 +1,323 @@
+%global _empty_manifest_terminate_build 0
+Name: python-phylm
+Version: 6.1.3
+Release: 1
+Summary: Phylm
+License: MIT
+URL: https://github.com/dbatten5/phylm
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6d/b7/6ccdf4af01f59424259f4e5553114b1dee385d596bed8e63d313fac86d52/phylm-6.1.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-aiohttp
+Requires: python3-beautifulsoup4
+Requires: python3-cinemagoer
+Requires: python3-click
+Requires: python3-requests
+
+%description
+# Phylm
+
+[![Actions Status](https://github.com/dbatten5/phylm/workflows/Tests/badge.svg)](https://github.com/dbatten5/phylm/actions)
+[![Actions Status](https://github.com/dbatten5/phylm/workflows/Release/badge.svg)](https://github.com/dbatten5/phylm/actions)
+[![codecov](https://codecov.io/gh/dbatten5/phylm/branch/master/graph/badge.svg?token=P233M48EA6)](https://codecov.io/gh/dbatten5/phylm)
+[![PyPI version](https://badge.fury.io/py/phylm.svg)](https://badge.fury.io/py/phylm)
+
+Film data aggregation with async support.
+
+## Motivation
+
+When deciding which film to watch next, it can be helpful to have some key datapoints at
+your fingertips, for example, the genre, the cast, the Metacritic score and, perhaps
+most importantly, the runtime. This package provides a Phylm class to gather information
+from various sources for a given film.
+
+## Installation
+
+```bash
+pip install phylm
+```
+
+## Usage
+
+```python
+>>> import asyncio
+>>> from phylm import Phylm
+>>> p = Phylm("The Matrix")
+>>> asyncio.run(p.load_source("imdb"))
+>>> p.imdb.year
+1999
+>>> p.imdb.rating
+8.7
+```
+
+`phylm` also provides some tools around movie search results and more:
+
+```python
+>>> from phylm.tools import search_movies, get_streaming_providers
+>>> search_movies("the matrix")
+[{
+ 'title': 'The Matrix',
+ 'kind': 'movie',
+ 'year': 1999,
+ 'cover_photo': 'https://some-url.com',
+ 'imdb_id': '0133093',
+}, {
+ 'title': 'The Matrix Reloaded',
+ 'kind': 'movie',
+ 'year': 2003,
+ 'cover_photo': 'https://some-url.com',
+ 'imdb_id': '0234215',
+}, {
+...
+>>> get_streaming_providers("0234215", regions=["gb"])
+{
+ 'gb': {
+ 'rent': [{
+ 'display_priority': 8,
+ 'logo_path': '/pZgeSWpfvD59x6sY6stT5c6uc2h.jpg',
+ 'provider_id': 130,
+ 'provider_name': 'Sky Store',
+ }],
+ 'flatrate': [{
+ 'display_priority': 8,
+ 'logo_path': '/ik9djlxNlex6sY6Kjsundc2h.jpg',
+ 'provider_id': 87,
+ 'provider_name': 'Netflix',
+ }]
+ }, {
+ ...
+}
+```
+
+## Help
+
+See the [documentation](https://dbatten5.github.io/phylm) for more details.
+
+## Licence
+
+MIT
+
+
+
+%package -n python3-phylm
+Summary: Phylm
+Provides: python-phylm
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-phylm
+# Phylm
+
+[![Actions Status](https://github.com/dbatten5/phylm/workflows/Tests/badge.svg)](https://github.com/dbatten5/phylm/actions)
+[![Actions Status](https://github.com/dbatten5/phylm/workflows/Release/badge.svg)](https://github.com/dbatten5/phylm/actions)
+[![codecov](https://codecov.io/gh/dbatten5/phylm/branch/master/graph/badge.svg?token=P233M48EA6)](https://codecov.io/gh/dbatten5/phylm)
+[![PyPI version](https://badge.fury.io/py/phylm.svg)](https://badge.fury.io/py/phylm)
+
+Film data aggregation with async support.
+
+## Motivation
+
+When deciding which film to watch next, it can be helpful to have some key datapoints at
+your fingertips, for example, the genre, the cast, the Metacritic score and, perhaps
+most importantly, the runtime. This package provides a Phylm class to gather information
+from various sources for a given film.
+
+## Installation
+
+```bash
+pip install phylm
+```
+
+## Usage
+
+```python
+>>> import asyncio
+>>> from phylm import Phylm
+>>> p = Phylm("The Matrix")
+>>> asyncio.run(p.load_source("imdb"))
+>>> p.imdb.year
+1999
+>>> p.imdb.rating
+8.7
+```
+
+`phylm` also provides some tools around movie search results and more:
+
+```python
+>>> from phylm.tools import search_movies, get_streaming_providers
+>>> search_movies("the matrix")
+[{
+ 'title': 'The Matrix',
+ 'kind': 'movie',
+ 'year': 1999,
+ 'cover_photo': 'https://some-url.com',
+ 'imdb_id': '0133093',
+}, {
+ 'title': 'The Matrix Reloaded',
+ 'kind': 'movie',
+ 'year': 2003,
+ 'cover_photo': 'https://some-url.com',
+ 'imdb_id': '0234215',
+}, {
+...
+>>> get_streaming_providers("0234215", regions=["gb"])
+{
+ 'gb': {
+ 'rent': [{
+ 'display_priority': 8,
+ 'logo_path': '/pZgeSWpfvD59x6sY6stT5c6uc2h.jpg',
+ 'provider_id': 130,
+ 'provider_name': 'Sky Store',
+ }],
+ 'flatrate': [{
+ 'display_priority': 8,
+ 'logo_path': '/ik9djlxNlex6sY6Kjsundc2h.jpg',
+ 'provider_id': 87,
+ 'provider_name': 'Netflix',
+ }]
+ }, {
+ ...
+}
+```
+
+## Help
+
+See the [documentation](https://dbatten5.github.io/phylm) for more details.
+
+## Licence
+
+MIT
+
+
+
+%package help
+Summary: Development documents and examples for phylm
+Provides: python3-phylm-doc
+%description help
+# Phylm
+
+[![Actions Status](https://github.com/dbatten5/phylm/workflows/Tests/badge.svg)](https://github.com/dbatten5/phylm/actions)
+[![Actions Status](https://github.com/dbatten5/phylm/workflows/Release/badge.svg)](https://github.com/dbatten5/phylm/actions)
+[![codecov](https://codecov.io/gh/dbatten5/phylm/branch/master/graph/badge.svg?token=P233M48EA6)](https://codecov.io/gh/dbatten5/phylm)
+[![PyPI version](https://badge.fury.io/py/phylm.svg)](https://badge.fury.io/py/phylm)
+
+Film data aggregation with async support.
+
+## Motivation
+
+When deciding which film to watch next, it can be helpful to have some key datapoints at
+your fingertips, for example, the genre, the cast, the Metacritic score and, perhaps
+most importantly, the runtime. This package provides a Phylm class to gather information
+from various sources for a given film.
+
+## Installation
+
+```bash
+pip install phylm
+```
+
+## Usage
+
+```python
+>>> import asyncio
+>>> from phylm import Phylm
+>>> p = Phylm("The Matrix")
+>>> asyncio.run(p.load_source("imdb"))
+>>> p.imdb.year
+1999
+>>> p.imdb.rating
+8.7
+```
+
+`phylm` also provides some tools around movie search results and more:
+
+```python
+>>> from phylm.tools import search_movies, get_streaming_providers
+>>> search_movies("the matrix")
+[{
+ 'title': 'The Matrix',
+ 'kind': 'movie',
+ 'year': 1999,
+ 'cover_photo': 'https://some-url.com',
+ 'imdb_id': '0133093',
+}, {
+ 'title': 'The Matrix Reloaded',
+ 'kind': 'movie',
+ 'year': 2003,
+ 'cover_photo': 'https://some-url.com',
+ 'imdb_id': '0234215',
+}, {
+...
+>>> get_streaming_providers("0234215", regions=["gb"])
+{
+ 'gb': {
+ 'rent': [{
+ 'display_priority': 8,
+ 'logo_path': '/pZgeSWpfvD59x6sY6stT5c6uc2h.jpg',
+ 'provider_id': 130,
+ 'provider_name': 'Sky Store',
+ }],
+ 'flatrate': [{
+ 'display_priority': 8,
+ 'logo_path': '/ik9djlxNlex6sY6Kjsundc2h.jpg',
+ 'provider_id': 87,
+ 'provider_name': 'Netflix',
+ }]
+ }, {
+ ...
+}
+```
+
+## Help
+
+See the [documentation](https://dbatten5.github.io/phylm) for more details.
+
+## Licence
+
+MIT
+
+
+
+%prep
+%autosetup -n phylm-6.1.3
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-phylm -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 6.1.3-1
+- Package Spec generated