Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1227c7fc1c | |||
| 2af4797346 |
Binary file not shown.
Binary file not shown.
@@ -7,24 +7,15 @@
|
|||||||
Установка через pip
|
Установка через pip
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
Выполните ``pip install kontur-focus --index-url https://__token__:<your_personal_token>@git.selectel.org/api/v4/projects/6350/packages/pypi/simple``
|
Выполните ``pip install --index-url https://git.slrover.ru/api/packages/public/pypi/simple/ kontur-focus``
|
||||||
|
|
||||||
Где `<your_personal_token>` - `персональный токен <https://git.selectel.org/help/user/profile/personal_access_tokens>`_ доступа Gitlab.
|
|
||||||
|
|
||||||
Использование requirements.txt
|
Использование requirements.txt
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
Перед использованием необходимо настроить Registry.
|
Добавьте в конец файла ``requirements.txt``::
|
||||||
|
|
||||||
Создайте файл `.pypirc` в папке пользователя и добавьте параметры репозитория:
|
--index-url https://git.slrover.ru/api/packages/public/pypi/simple/
|
||||||
|
kontur-focus
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
[gitlab]
|
|
||||||
repository = https://git.selectel.org/api/v4/projects/6350/packages/pypi
|
|
||||||
username = __token__
|
|
||||||
password = <your personal access token>
|
|
||||||
|
|
||||||
Более подробно `тут <https://git.selectel.org/help/user/packages/pypi_repository/index>`_.
|
|
||||||
|
|
||||||
После выполните ``pip install -r requirements.txt``
|
После выполните ``pip install -r requirements.txt``
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -84,20 +84,15 @@
|
|||||||
<p>Для установки необходимо иметь доступ в корпоративный <a class="reference external" href="https://git.selectel.org">Gitlab</a>, чтобы получить доступ к Registry PyPi.</p>
|
<p>Для установки необходимо иметь доступ в корпоративный <a class="reference external" href="https://git.selectel.org">Gitlab</a>, чтобы получить доступ к Registry PyPi.</p>
|
||||||
<section id="pip">
|
<section id="pip">
|
||||||
<h2>Установка через pip<a class="headerlink" href="#pip" title="Ссылка на этот заголовок"></a></h2>
|
<h2>Установка через pip<a class="headerlink" href="#pip" title="Ссылка на этот заголовок"></a></h2>
|
||||||
<p>Выполните <code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">kontur-focus</span> <span class="pre">--index-url</span> <span class="pre">https://__token__:<your_personal_token>@git.selectel.org/api/v4/projects/6350/packages/pypi/simple</span></code></p>
|
<p>Выполните <code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">--index-url</span> <span class="pre">https://git.slrover.ru/api/packages/public/pypi/simple/</span> <span class="pre">kontur-focus</span></code></p>
|
||||||
<p>Где <cite><your_personal_token></cite> - <a class="reference external" href="https://git.selectel.org/help/user/profile/personal_access_tokens">персональный токен</a> доступа Gitlab.</p>
|
|
||||||
</section>
|
</section>
|
||||||
<section id="requirements-txt">
|
<section id="requirements-txt">
|
||||||
<h2>Использование requirements.txt<a class="headerlink" href="#requirements-txt" title="Ссылка на этот заголовок"></a></h2>
|
<h2>Использование requirements.txt<a class="headerlink" href="#requirements-txt" title="Ссылка на этот заголовок"></a></h2>
|
||||||
<p>Перед использованием необходимо настроить Registry.</p>
|
<p>Добавьте в конец файла <code class="docutils literal notranslate"><span class="pre">requirements.txt</span></code>:</p>
|
||||||
<p>Создайте файл <cite>.pypirc</cite> в папке пользователя и добавьте параметры репозитория:</p>
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">--</span><span class="n">index</span><span class="o">-</span><span class="n">url</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">git</span><span class="o">.</span><span class="n">slrover</span><span class="o">.</span><span class="n">ru</span><span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="n">packages</span><span class="o">/</span><span class="n">public</span><span class="o">/</span><span class="n">pypi</span><span class="o">/</span><span class="n">simple</span><span class="o">/</span>
|
||||||
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">[gitlab]</span>
|
<span class="n">kontur</span><span class="o">-</span><span class="n">focus</span>
|
||||||
<span class="go">repository = https://git.selectel.org/api/v4/projects/6350/packages/pypi</span>
|
|
||||||
<span class="go">username = __token__</span>
|
|
||||||
<span class="go">password = <your personal access token></span>
|
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
<p>Более подробно <a class="reference external" href="https://git.selectel.org/help/user/packages/pypi_repository/index">тут</a>.</p>
|
|
||||||
<p>После выполните <code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">-r</span> <span class="pre">requirements.txt</span></code></p>
|
<p>После выполните <code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">-r</span> <span class="pre">requirements.txt</span></code></p>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -7,24 +7,15 @@
|
|||||||
Установка через pip
|
Установка через pip
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
Выполните ``pip install kontur-focus --index-url https://__token__:<your_personal_token>@git.selectel.org/api/v4/projects/6350/packages/pypi/simple``
|
Выполните ``pip install --index-url https://git.slrover.ru/api/packages/public/pypi/simple/ kontur-focus``
|
||||||
|
|
||||||
Где `<your_personal_token>` - `персональный токен <https://git.selectel.org/help/user/profile/personal_access_tokens>`_ доступа Gitlab.
|
|
||||||
|
|
||||||
Использование requirements.txt
|
Использование requirements.txt
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
Перед использованием необходимо настроить Registry.
|
Добавьте в конец файла ``requirements.txt``::
|
||||||
|
|
||||||
Создайте файл `.pypirc` в папке пользователя и добавьте параметры репозитория:
|
--index-url https://git.slrover.ru/api/packages/public/pypi/simple/
|
||||||
|
kontur-focus
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
[gitlab]
|
|
||||||
repository = https://git.selectel.org/api/v4/projects/6350/packages/pypi
|
|
||||||
username = __token__
|
|
||||||
password = <your personal access token>
|
|
||||||
|
|
||||||
Более подробно `тут <https://git.selectel.org/help/user/packages/pypi_repository/index>`_.
|
|
||||||
|
|
||||||
После выполните ``pip install -r requirements.txt``
|
После выполните ``pip install -r requirements.txt``
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ class FocusCompliance(Request):
|
|||||||
for profile_id in profile_id_list:
|
for profile_id in profile_id_list:
|
||||||
response = self.get(f'{self._focus_base_url}/companies/profiles/{profile_id}/report')
|
response = self.get(f'{self._focus_base_url}/companies/profiles/{profile_id}/report')
|
||||||
result = self._save_file(
|
result = self._save_file(
|
||||||
filename=f'Отчет_по_профилю_{profile_id_list[0]}',
|
filename=f'Отчет_по_профилю_{profile_id_list[0]}_{profile_id}',
|
||||||
content=response.content,
|
content=response.content,
|
||||||
file_type='docx',
|
file_type='docx',
|
||||||
path=path
|
path=path
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="kontur_focus",
|
name="kontur_focus",
|
||||||
version="2025.11.5",
|
version="2025.11.6",
|
||||||
author="Ilya Sapunov",
|
author="Ilya Sapunov",
|
||||||
author_email="sapunov@selectel.ru",
|
author_email="sapunov@selectel.ru",
|
||||||
description="Библиотека-обертка для взаимодействия с REST API Контур.Фокус и Фокус.Комплаенс",
|
description="Библиотека-обертка для взаимодействия с REST API Контур.Фокус и Фокус.Комплаенс",
|
||||||
|
|||||||
Reference in New Issue
Block a user