summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 23:02:54 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 23:02:54 +0000
commitae46184418c50ee82962f4c58e44453eb0ee6cee (patch)
tree6deb0ca2195d66b2c3d18c86ba3cac6917aa238f
parente363bbb51a6c3cfd4370a8c541783f2a065e5e9a (diff)
automatic import of python-clearbit
-rw-r--r--.gitignore1
-rw-r--r--python-clearbit.spec234
-rw-r--r--sources1
3 files changed, 236 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..44d3ca1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/clearbit-0.1.7.tar.gz
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
diff --git a/sources b/sources
new file mode 100644
index 0000000..45807ba
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bd0100c2d807b359904d5b470dca25dd clearbit-0.1.7.tar.gz