Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit f3bb6ab

Browse files
committed
[DSX-632] Rename package from mlflow-client to mlflow-rest-client
1 parent 5419a6b commit f3bb6ab

37 files changed

+177
-185
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
run: pip install -r requirements.txt -r requirements-test.txt -r requirements-dev.txt
8787

8888
- name: Run pylint
89-
run: pylint mlflow_client
89+
run: pylint mlflow_rest_client
9090

9191
- name: Build package
9292
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
*~.nib
2121
.Python
2222
.buildpath
23+
*cache
2324
.cache
2425
.cache-main
2526
.classpath

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repos:
5656
rev: 5.10.1
5757
hooks:
5858
- id: isort
59-
files: mlflow_client/.*
59+
files: mlflow_rest_client/.*
6060
- id: isort
6161
files: tests/.*
6262
- repo: https://github.com/pre-commit/pygrep-hooks

CHANGELOG.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ Changelog
4444

4545
.. change::
4646
:tags: client, breaking
47-
:tickets: DSX:545
47+
:tickets: DSX:545, DSX:632
4848

49-
Rename ``MLflowApiClient`` to ``MLflowClient``
49+
Rename library:
50+
51+
* ``mlflow-client`` -> ``mlflow-rest-client``
52+
* ``MLflowApiClient`` -> ``MLflowRESTClient``
5053

5154
.. change::
5255
:tags: general, feature
@@ -506,7 +509,7 @@ Changelog
506509
:tickets: SCRR:111
507510
:changeset: 77e7f798
508511

509-
``mlflow-client`` package was created based on ``mlflow-python-client <https://github.com/amesar/mlflow-python-client>``__
512+
``mlflow-rest-client`` package was created based on ``mlflow-python-client <https://github.com/amesar/mlflow-python-client>``__
510513
511514
.. change::
512515
:tags: artifact, feature

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include LICENSE.txt README.rst requirements.txt requirements-test.txt requirements-dev.txt mlflow_client/VERSION
1+
include LICENSE.txt README.rst requirements.txt requirements-test.txt requirements-dev.txt mlflow_rest_client/VERSION
22
recursive-exclude * __pycache__
33
recursive-exclude * *.pyc
44
recursive-exclude * *.pyo

README.rst

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ Python Client for MLflow
88

99
.. |status| image:: https://www.repostatus.org/badges/latest/active.svg
1010
:target: https://www.repostatus.org/#active
11-
.. |PyPI| image:: https://badge.fury.io/py/mlflow-client.svg
12-
:target: https://badge.fury.io/py/mlflow-client
13-
.. |PyPI License| image:: https://img.shields.io/pypi/l/mlflow-client.svg
14-
:target: https://github.com/MobileTeleSystems/mlflow-client/blob/main/LICENSE.txt
15-
.. |PyPI Python Version| image:: https://img.shields.io/pypi/pyversions/mlflow-client.svg
16-
:target: https://badge.fury.io/py/mlflow-client
17-
.. |ReadTheDocs| image:: https://img.shields.io/readthedocs/mlflow-client.svg
18-
:target: https://mlflow-client.readthedocs.io
19-
.. |Build| image:: https://github.com/MobileTeleSystems/mlflow-client/workflows/Tests/badge.svg
20-
:target: https://github.com/MobileTeleSystems/mlflow-client/actions
21-
.. |Coverage| image:: https://codecov.io/gh/MobileTeleSystems/mlflow-client/branch/main/graph/badge.svg
22-
:target: https://codecov.io/gh/MobileTeleSystems/mlflow-client
23-
.. |pre-commit.ci| image:: https://results.pre-commit.ci/badge/github/MobileTeleSystems/mlflow-client/main.svg
24-
:target: https://results.pre-commit.ci/latest/github/MobileTeleSystems/mlflow-client/main
11+
.. |PyPI| image:: https://badge.fury.io/py/mlflow-rest-client.svg
12+
:target: https://badge.fury.io/py/mlflow-rest-client
13+
.. |PyPI License| image:: https://img.shields.io/pypi/l/mlflow-rest-client.svg
14+
:target: https://github.com/MobileTeleSystems/mlflow-rest-client/blob/main/LICENSE.txt
15+
.. |PyPI Python Version| image:: https://img.shields.io/pypi/pyversions/mlflow-rest-client.svg
16+
:target: https://badge.fury.io/py/mlflow-rest-client
17+
.. |ReadTheDocs| image:: https://img.shields.io/readthedocs/mlflow-rest-client.svg
18+
:target: https://mlflow-rest-client.readthedocs.io
19+
.. |Build| image:: https://github.com/MobileTeleSystems/mlflow-rest-client/workflows/Tests/badge.svg
20+
:target: https://github.com/MobileTeleSystems/mlflow-rest-client/actions
21+
.. |Coverage| image:: https://codecov.io/gh/MobileTeleSystems/mlflow-rest-client/branch/main/graph/badge.svg
22+
:target: https://codecov.io/gh/MobileTeleSystems/mlflow-rest-client
23+
.. |pre-commit.ci| image:: https://results.pre-commit.ci/badge/github/MobileTeleSystems/mlflow-rest-client/main.svg
24+
:target: https://results.pre-commit.ci/latest/github/MobileTeleSystems/mlflow-rest-client/main
2525

2626
Python client for `MLflow <https://mlflow.org>`_ REST API.
2727

@@ -51,7 +51,7 @@ Python client for `MLflow <https://mlflow.org>`_ REST API.
5151
Documentation
5252
-------------
5353

54-
See https://mlflow-client.readthedocs.io/
54+
See https://mlflow-rest-client.readthedocs.io/
5555

5656
.. contribution
5757
@@ -78,9 +78,9 @@ Version example: ``2.0.0``
7878

7979
.. code:: bash
8080
81-
pip install mlflow-client==2.0.0 # exact version
81+
pip install mlflow-rest-client==2.0.0 # exact version
8282
83-
pip install mlflow-client # latest release
83+
pip install mlflow-rest-client # latest release
8484
8585
Development release
8686
~~~~~~~~~~~~~~~~~~~~
@@ -89,9 +89,9 @@ Version example: ``2.0.0.dev5``
8989

9090
.. code:: bash
9191
92-
pip install mlflow-client==2.0.0.dev5 # exact dev version
92+
pip install mlflow-rest-client==2.0.0.dev5 # exact dev version
9393
94-
pip install --pre mlflow-client # latest dev version
94+
pip install --pre mlflow-rest-client # latest dev version
9595
9696
.. develop
9797
@@ -101,9 +101,9 @@ Clone repo:
101101

102102
.. code:: bash
103103
104-
git clone git@github.com:MobileTeleSystems/mlflow-client.git
104+
git clone git@github.com:MobileTeleSystems/mlflow-rest-client.git
105105
106-
cd mlflow-client
106+
cd mlflow-rest-client
107107
108108
Install dependencies for development:
109109

@@ -133,11 +133,11 @@ Make sure you have an `MLflow Tracking Server <https://mlflow.org/docs/latest/tr
133133

134134
.. code:: python
135135
136-
from mlflow_client import MLflowClient
136+
from mlflow_rest_client import MLflowRESTClient
137137
138-
client = MLflowClient("https://mlflow.domain", ignore_ssl_check=True)
138+
client = MLflowRESTClient("https://mlflow.domain", ignore_ssl_check=True)
139139
140140
experiment = client.get_or_create_experiment("experiment_name")
141141
run = client.create_run(experiment.id)
142142
143-
See `sample.py <https://github.com/MobileTeleSystems/mlflow-client/blob/main/samples/sample.py>`_ for more examples.
143+
See `sample.py <https://github.com/MobileTeleSystems/mlflow-rest-client/blob/main/samples/sample.py>`_ for more examples.

docs/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# -- Project information -----------------------------------------------------
3030

31-
project = "mlflow-client"
31+
project = "mlflow-rest-client"
3232
copyright = "2022, MTS (Mobile Telesystems)"
3333
author = "MTS DSX Team"
3434

@@ -65,7 +65,7 @@
6565
# a list of builtin themes.
6666
#
6767
html_theme = "furo"
68-
html_title = f"mlflow-client {version}"
68+
html_title = f"mlflow-rest-client {version}"
6969

7070
# Add any paths that contain custom static files (such as style sheets) here,
7171
# relative to this directory. They are copied after the builtin static files,
@@ -99,15 +99,15 @@
9999
changelog_hive_sections_from_tags = True
100100

101101
changelog_render_ticket = {
102-
"default": "https://github.com/MobileTeleSystems/mlflow-client/issues/%s",
102+
"default": "https://github.com/MobileTeleSystems/mlflow-rest-client/issues/%s",
103103
"DSX": "https://jira.bd.msk.mts.ru/browse/DSX-%s",
104104
"SCRR": "https://jira.bd.msk.mts.ru/browse/SCRR-%s",
105105
}
106106
changelog_render_pullreq = {
107-
"default": "https://github.com/MobileTeleSystems/mlflow-client/pull/%s",
107+
"default": "https://github.com/MobileTeleSystems/mlflow-rest-client/pull/%s",
108108
"gitlab": "https://gitlab.services.mts.ru/bigdata/platform/dsx/mlflow-client/-/merge_requests/%s",
109109
}
110-
changelog_render_changeset = "https://github.com/MobileTeleSystems/mlflow-client/commit/%s"
110+
changelog_render_changeset = "https://github.com/MobileTeleSystems/mlflow-rest-client/commit/%s"
111111

112112
language = "en"
113113

docs/index.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
:name: mastertoc
1919
:hidden:
2020

21-
mlflow_client.client
22-
mlflow_client.artifact
23-
mlflow_client.experiment
24-
mlflow_client.model
25-
mlflow_client.page
26-
mlflow_client.run
27-
mlflow_client.tag
21+
mlflow_rest_client.client
22+
mlflow_rest_client.artifact
23+
mlflow_rest_client.experiment
24+
mlflow_rest_client.model
25+
mlflow_rest_client.page
26+
mlflow_rest_client.run
27+
mlflow_rest_client.tag
2828

2929
.. toctree::
3030
:maxdepth: 2
@@ -42,7 +42,7 @@
4242
:caption: Project Links
4343
:hidden:
4444

45-
Source Code <https://github.com/MobileTeleSystems/mlflow-client>
46-
CI/CD <https://github.com/MobileTeleSystems/mlflow-client/actions>
47-
Code Coverage <https://app.codecov.io/gh/MobileTeleSystems/mlflow-client>
48-
Issue Tracker <https://github.com/MobileTeleSystems/mlflow-client/issues>
45+
Source Code <https://github.com/MobileTeleSystems/mlflow-rest-client>
46+
CI/CD <https://github.com/MobileTeleSystems/mlflow-rest-client/actions>
47+
Code Coverage <https://app.codecov.io/gh/MobileTeleSystems/mlflow-rest-client>
48+
Issue Tracker <https://github.com/MobileTeleSystems/mlflow-rest-client/issues>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Artifact
22
=================================================================
33

4-
.. currentmodule:: mlflow_client.artifact
4+
.. currentmodule:: mlflow_rest_client.artifact
55

66
.. autosummary::
77
:nosignatures:
88

99
Artifact
1010

11-
.. autoclass:: mlflow_client.artifact.Artifact
11+
.. autoclass:: mlflow_rest_client.artifact.Artifact
1212
:members:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ MLflow API client
33

44
Summary
55
--------
6-
.. currentmodule:: mlflow_client.mlflow_client.MLflowClient
6+
.. currentmodule:: mlflow_rest_client.mlflow_rest_client.MLflowRESTClient
77

88
Main class
99
^^^^^^^^^^^
1010
.. autosummary::
1111
:nosignatures:
1212

13-
mlflow_client.mlflow_client.MLflowClient
13+
mlflow_rest_client.mlflow_rest_client.MLflowRESTClient
1414

1515
Experiment
1616
^^^^^^^^^^^
@@ -139,5 +139,5 @@ Model version
139139

140140
Documentation
141141
--------------
142-
.. autoclass:: mlflow_client.mlflow_client.MLflowClient
142+
.. autoclass:: mlflow_rest_client.mlflow_rest_client.MLflowRESTClient
143143
:members:

0 commit comments

Comments
 (0)