%global _empty_manifest_terminate_build 0 Name: python-Random-Word Version: 1.0.11 Release: 1 Summary: This is a simple python package to generate random english words License: MIT URL: https://github.com/vaibhavsingh97/random-word Source0: https://mirrors.nju.edu.cn/pypi/web/packages/59/40/56670c6473fe9933d22ebe6084008866221c2870cbfde19f70bb9995df42/Random%20Word-1.0.11.tar.gz BuildArch: noarch Requires: python3-requests Requires: python3-pytest Requires: python3-pyyaml %description # random-word ![Build](https://github.com/vaibhavsingh97/random-word/workflows/Build/badge.svg) [![PyPI version](https://badge.fury.io/py/Random-Word.svg)](https://badge.fury.io/py/Random-Word) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Django.svg)](https://pypi.org/project/random-word/) [![PyPI - Status](https://img.shields.io/pypi/status/Django.svg)](https://pypi.org/project/random-word/) [![Downloads](https://pepy.tech/badge/random-word)](https://pepy.tech/project/random-word) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://vaibhavsingh97.mit-license.org/) This is a simple python package to generate random English words. If you need help after reading the below, please find me on Twitter at [@vaibhavsingh97](https://twitter.com/vaibhavsingh97). If you love the package, please :star2: the repo. ## Installation You should be able to install using `easy_install` or `pip` in the usual ways: ```sh $ easy_install random-word $ pip install random-word ``` Or clone this repository and run: ```sh $ python3 setup.py install ``` Or place the `random-word` folder that you downloaded somewhere where your scripts can access it. ## Basic Usage > 👋 This package will now, by default, fetch the random word from local [database](https://github.com/vaibhavsingh97/random-word/blob/master/random_word/database/words.json) ```python from random_word import RandomWords r = RandomWords() # Return a single random word r.get_random_word() ``` Different services are available as a part of the random word package, which fetches random words from various API providers. Please check the `Services` section for more details. ## Services - [Wordnik][wordnikDocLink] - [API Ninjas][apiNinjasDocLink] ## Development Assuming that you have [`Python`](https://www.python.org/) and [`pipenv`](https://docs.pipenv.org) installed, set up your environment and install the required dependencies like this instead of the `pip install random-word` defined above: ```sh $ git clone https://github.com/vaibhavsingh97/random-word.git $ cd random-word $ make init ``` Add API Key in `random_word` directory defining API Key in `config.yml`. If you don't have an API key, then request your API key [here][wornikWebsiteLink] ```sh API_KEY = "" ``` To check your desired changes, you can install your package locally. ```sh $ pip install -e . ``` ## Issues You can report the bugs at the [issue tracker](https://github.com/vaibhavsingh97/random-word/issues) ## License Built with ♥ by Vaibhav Singh([@vaibhavsingh97](https://github.com/vaibhavsingh97)) under [MIT License](https://vaibhavsingh97.mit-license.org/) You can find a copy of the License at [wordnikDocLink]:https://github.com/vaibhavsingh97/random-word/blob/master/docs/wordnik.md [apiNinjasDocLink]:https://github.com/vaibhavsingh97/random-word/blob/master/docs/apininjas.md %package -n python3-Random-Word Summary: This is a simple python package to generate random english words Provides: python-Random-Word BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-Random-Word # random-word ![Build](https://github.com/vaibhavsingh97/random-word/workflows/Build/badge.svg) [![PyPI version](https://badge.fury.io/py/Random-Word.svg)](https://badge.fury.io/py/Random-Word) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Django.svg)](https://pypi.org/project/random-word/) [![PyPI - Status](https://img.shields.io/pypi/status/Django.svg)](https://pypi.org/project/random-word/) [![Downloads](https://pepy.tech/badge/random-word)](https://pepy.tech/project/random-word) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://vaibhavsingh97.mit-license.org/) This is a simple python package to generate random English words. If you need help after reading the below, please find me on Twitter at [@vaibhavsingh97](https://twitter.com/vaibhavsingh97). If you love the package, please :star2: the repo. ## Installation You should be able to install using `easy_install` or `pip` in the usual ways: ```sh $ easy_install random-word $ pip install random-word ``` Or clone this repository and run: ```sh $ python3 setup.py install ``` Or place the `random-word` folder that you downloaded somewhere where your scripts can access it. ## Basic Usage > 👋 This package will now, by default, fetch the random word from local [database](https://github.com/vaibhavsingh97/random-word/blob/master/random_word/database/words.json) ```python from random_word import RandomWords r = RandomWords() # Return a single random word r.get_random_word() ``` Different services are available as a part of the random word package, which fetches random words from various API providers. Please check the `Services` section for more details. ## Services - [Wordnik][wordnikDocLink] - [API Ninjas][apiNinjasDocLink] ## Development Assuming that you have [`Python`](https://www.python.org/) and [`pipenv`](https://docs.pipenv.org) installed, set up your environment and install the required dependencies like this instead of the `pip install random-word` defined above: ```sh $ git clone https://github.com/vaibhavsingh97/random-word.git $ cd random-word $ make init ``` Add API Key in `random_word` directory defining API Key in `config.yml`. If you don't have an API key, then request your API key [here][wornikWebsiteLink] ```sh API_KEY = "" ``` To check your desired changes, you can install your package locally. ```sh $ pip install -e . ``` ## Issues You can report the bugs at the [issue tracker](https://github.com/vaibhavsingh97/random-word/issues) ## License Built with ♥ by Vaibhav Singh([@vaibhavsingh97](https://github.com/vaibhavsingh97)) under [MIT License](https://vaibhavsingh97.mit-license.org/) You can find a copy of the License at [wordnikDocLink]:https://github.com/vaibhavsingh97/random-word/blob/master/docs/wordnik.md [apiNinjasDocLink]:https://github.com/vaibhavsingh97/random-word/blob/master/docs/apininjas.md %package help Summary: Development documents and examples for Random-Word Provides: python3-Random-Word-doc %description help # random-word ![Build](https://github.com/vaibhavsingh97/random-word/workflows/Build/badge.svg) [![PyPI version](https://badge.fury.io/py/Random-Word.svg)](https://badge.fury.io/py/Random-Word) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Django.svg)](https://pypi.org/project/random-word/) [![PyPI - Status](https://img.shields.io/pypi/status/Django.svg)](https://pypi.org/project/random-word/) [![Downloads](https://pepy.tech/badge/random-word)](https://pepy.tech/project/random-word) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://vaibhavsingh97.mit-license.org/) This is a simple python package to generate random English words. If you need help after reading the below, please find me on Twitter at [@vaibhavsingh97](https://twitter.com/vaibhavsingh97). If you love the package, please :star2: the repo. ## Installation You should be able to install using `easy_install` or `pip` in the usual ways: ```sh $ easy_install random-word $ pip install random-word ``` Or clone this repository and run: ```sh $ python3 setup.py install ``` Or place the `random-word` folder that you downloaded somewhere where your scripts can access it. ## Basic Usage > 👋 This package will now, by default, fetch the random word from local [database](https://github.com/vaibhavsingh97/random-word/blob/master/random_word/database/words.json) ```python from random_word import RandomWords r = RandomWords() # Return a single random word r.get_random_word() ``` Different services are available as a part of the random word package, which fetches random words from various API providers. Please check the `Services` section for more details. ## Services - [Wordnik][wordnikDocLink] - [API Ninjas][apiNinjasDocLink] ## Development Assuming that you have [`Python`](https://www.python.org/) and [`pipenv`](https://docs.pipenv.org) installed, set up your environment and install the required dependencies like this instead of the `pip install random-word` defined above: ```sh $ git clone https://github.com/vaibhavsingh97/random-word.git $ cd random-word $ make init ``` Add API Key in `random_word` directory defining API Key in `config.yml`. If you don't have an API key, then request your API key [here][wornikWebsiteLink] ```sh API_KEY = "" ``` To check your desired changes, you can install your package locally. ```sh $ pip install -e . ``` ## Issues You can report the bugs at the [issue tracker](https://github.com/vaibhavsingh97/random-word/issues) ## License Built with ♥ by Vaibhav Singh([@vaibhavsingh97](https://github.com/vaibhavsingh97)) under [MIT License](https://vaibhavsingh97.mit-license.org/) You can find a copy of the License at [wordnikDocLink]:https://github.com/vaibhavsingh97/random-word/blob/master/docs/wordnik.md [apiNinjasDocLink]:https://github.com/vaibhavsingh97/random-word/blob/master/docs/apininjas.md %prep %autosetup -n Random-Word-1.0.11 %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-Random-Word -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Sun Apr 23 2023 Python_Bot - 1.0.11-1 - Package Spec generated