diff options
Diffstat (limited to 'python-clearbit.spec')
-rw-r--r-- | python-clearbit.spec | 234 |
1 files changed, 234 insertions, 0 deletions
diff --git a/python-clearbit.spec b/python-clearbit.spec new file mode 100644 index 0000000..20605b7 --- /dev/null +++ b/python-clearbit.spec @@ -0,0 +1,234 @@ +%global _empty_manifest_terminate_build 0 +Name: python-clearbit +Version: 0.1.7 +Release: 1 +Summary: Clearbit python bindings +License: MIT License +URL: https://clearbit.com +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/50/e7/bbd7c4525cb4ecb74fbe7f4dff6f4112342d9050d64b3be8d56b8c0a028b/clearbit-0.1.7.tar.gz +BuildArch: noarch + + +%description +# Clearbit + +A Python API client to [https://clearbit.com](https://clearbit.com). + +## Installation + +To install the Clearbit Python bindings, run: + + pip install clearbit + +Or + + easy_install clearbit + +## Usage + +First authorize requests by setting the API key found on your [account's settings page](https://clearbit.com/keys). + +```python +import clearbit +clearbit.key = 'mykey' +``` + +You can also set the API key via the CLEARBIT_KEY environment variable. + +Then you can lookup people by email address. If the email's domain is corporate we'll also return a company response. + +```python +response = clearbit.Enrichment.find(email='alex@clearbit.com',stream=True) +``` + +See the [documentation](https://clearbit.com/docs#person-api) for more information. + +## Company lookup + +You can lookup company data by domain name: + +```python +company = clearbit.Company.find(domain='uber.com',stream=True) +``` + +If the company can't be found, then `None` will be returned. + +See the [documentation](https://clearbit.com/docs#company-api) for more information. + +## Testing + +Set the `PYTHONPATH` env var to the current directory to load the library locally: + + export PYTHONPATH=. + +## Deploy + + python setup.py sdist upload -r pypi + + +%package -n python3-clearbit +Summary: Clearbit python bindings +Provides: python-clearbit +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-clearbit +# Clearbit + +A Python API client to [https://clearbit.com](https://clearbit.com). + +## Installation + +To install the Clearbit Python bindings, run: + + pip install clearbit + +Or + + easy_install clearbit + +## Usage + +First authorize requests by setting the API key found on your [account's settings page](https://clearbit.com/keys). + +```python +import clearbit +clearbit.key = 'mykey' +``` + +You can also set the API key via the CLEARBIT_KEY environment variable. + +Then you can lookup people by email address. If the email's domain is corporate we'll also return a company response. + +```python +response = clearbit.Enrichment.find(email='alex@clearbit.com',stream=True) +``` + +See the [documentation](https://clearbit.com/docs#person-api) for more information. + +## Company lookup + +You can lookup company data by domain name: + +```python +company = clearbit.Company.find(domain='uber.com',stream=True) +``` + +If the company can't be found, then `None` will be returned. + +See the [documentation](https://clearbit.com/docs#company-api) for more information. + +## Testing + +Set the `PYTHONPATH` env var to the current directory to load the library locally: + + export PYTHONPATH=. + +## Deploy + + python setup.py sdist upload -r pypi + + +%package help +Summary: Development documents and examples for clearbit +Provides: python3-clearbit-doc +%description help +# Clearbit + +A Python API client to [https://clearbit.com](https://clearbit.com). + +## Installation + +To install the Clearbit Python bindings, run: + + pip install clearbit + +Or + + easy_install clearbit + +## Usage + +First authorize requests by setting the API key found on your [account's settings page](https://clearbit.com/keys). + +```python +import clearbit +clearbit.key = 'mykey' +``` + +You can also set the API key via the CLEARBIT_KEY environment variable. + +Then you can lookup people by email address. If the email's domain is corporate we'll also return a company response. + +```python +response = clearbit.Enrichment.find(email='alex@clearbit.com',stream=True) +``` + +See the [documentation](https://clearbit.com/docs#person-api) for more information. + +## Company lookup + +You can lookup company data by domain name: + +```python +company = clearbit.Company.find(domain='uber.com',stream=True) +``` + +If the company can't be found, then `None` will be returned. + +See the [documentation](https://clearbit.com/docs#company-api) for more information. + +## Testing + +Set the `PYTHONPATH` env var to the current directory to load the library locally: + + export PYTHONPATH=. + +## Deploy + + python setup.py sdist upload -r pypi + + +%prep +%autosetup -n clearbit-0.1.7 + +%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-clearbit -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.7-1 +- Package Spec generated |