Skip to content

Commit e6e5e04

Browse files
authored
Rename to ParData (#266)
We'll go with "ParData", because: - Homophone "Partake", emphasizing sharing and participation. - Homophone "PyData", interaction between Python and Data. - "Par-" means "equal in value", emphasizing that with ParData, all data are equally accessible.
1 parent 65fb6f6 commit e6e5e04

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+342
-339
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ dmypy.json
142142
docs/build/
143143
docs/source/api-references
144144

145-
### pydax ###
146-
/pydax/_version.py
145+
### pardata ###
146+
/pardata/_version.py
147147
/tests/datasets
148148
/tests/doctests
149149
/tests/tls/test_ca_bundle.pem

AUTHORS.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Authors
22
=======
33

4-
PyDAX is written and maintained by the CODAIT team at International Business Machines Corp. (IBM)
4+
ParData is written and maintained by the CODAIT team at International Business Machines Corp. (IBM)
55

66
Primary co-maintainers:
77

CONTRIBUTING.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Use ``tox``
1212
~~~~~~~~~~~
1313

1414
To start developing, the recommended way is to use ``tox``. This way, your development environment is automatically
15-
prepared by ``tox``, including virtual environment setup, dependency management, installing `pydax` in development mode.
15+
prepared by ``tox``, including virtual environment setup, dependency management, installing `pardata` in development mode.
1616

1717
1. Install ``tox``:
1818

@@ -21,7 +21,7 @@ prepared by ``tox``, including virtual environment setup, dependency management,
2121
$ pip install -U -r requirements/tox.txt # If you are inside a virtual environment, conda environment
2222
$ pip3 install --user -U -r requirements/tox.txt # If you are outside any virtual environment or conda environment and don't have tox installed
2323
24-
2. At the root directory of ``pydax``, run:
24+
2. At the root directory of ``pardata``, run:
2525

2626
.. code-block:: console
2727
@@ -60,13 +60,13 @@ Run All Tests
6060

6161
Before and after one stage of development, you may want to try whether the code would pass all tests.
6262

63-
To run all tests on the Python versions that are supported by PyDAX and available on your system, run:
63+
To run all tests on the Python versions that are supported by ParData and available on your system, run:
6464

6565
.. code-block:: console
6666
6767
$ tox -s
6868
69-
When you are brave, to force running all tests on all Python versions that are supported by PyDAX, run:
69+
When you are brave, to force running all tests on all Python versions that are supported by ParData, run:
7070

7171
.. code-block:: console
7272
@@ -124,15 +124,15 @@ Where to Expose a Symbol (Function, Class, etc.)?
124124

125125
Generally speaking:
126126

127-
- If a symbol is likely used by a casual user regularly, it should be exposed in :file:`pydax/__init__.py`. This gives
127+
- If a symbol is likely used by a casual user regularly, it should be exposed in :file:`pardata/__init__.py`. This gives
128128
casual users the cleanest and the most direct access.
129129
- If a symbol is used only by a power user, but is unlikely used by a casual user regularly, it should be exposed in a
130-
file that does not start with an underscore, such as :file:`pydax/schema.py`; or in the :file:`__init__.py` file in a
131-
subdirectory that does not start with an underscore, such as :file:`pydax/loaders/__init__.py`. The rationale is that
130+
file that does not start with an underscore, such as :file:`pardata/schema.py`; or in the :file:`__init__.py` file in a
131+
subdirectory that does not start with an underscore, such as :file:`pardata/loaders/__init__.py`. The rationale is that
132132
the amount of such symbols is usually large and if we expose them at the root level of the package, it would be messy
133133
and likely confuse casual users.
134134
- If a symbol is solely used for internal purpose, it should be exposed only in files starting with a single underscore,
135-
such as :file:`pydax/_dataset.py`.
135+
such as :file:`pardata/_dataset.py`.
136136

137137
Please keep in mind that the criteria above are not meant to be rigid: They should be applied flexibly in light of
138138
factors such as where existing symbols are placed and other potentially important considerations (if any).
@@ -197,8 +197,8 @@ these packages solely for deployment of our development environment (i.e., runni
197197
want stable packages that are used by us for these purposes. We let `Renovate`_ verify that bumping the versions won't
198198
break anything before we actually upgrade any of these dependencies.
199199

200-
We should not pin the actual dependencies of PyDAX (as specified in :file:`setup.py`), because PyDAX is an intermediate
201-
software layer -- those should be pinned only by the actual deployed application that depends on PyDAX. We should only
200+
We should not pin the actual dependencies of ParData (as specified in :file:`setup.py`), because ParData is an intermediate
201+
software layer -- those should be pinned only by the actual deployed application that depends on ParData. We should only
202202
code the info of supported versions of these dependencies. If there is some regression or incompatibilities in the
203203
latest versions of our dependencies, we should either work around them, or update :file:`setup.py` to avoid depending on
204204
those versions.

README.rst

+39-39
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,43 @@
33

44
.. readme-start
55
6-
PyDAX
7-
=====
6+
ParData
7+
=======
88

9-
.. image:: https://img.shields.io/pypi/v/pydax.svg
10-
:target: https://pypi.python.org/pypi/pydax
9+
.. image:: https://img.shields.io/pypi/v/pardata.svg
10+
:target: https://pypi.python.org/pypi/pardata
1111
:alt: PyPI
1212

13-
.. image:: https://img.shields.io/pypi/pyversions/pydax
14-
:target: https://pypi.python.org/pypi/pydax
13+
.. image:: https://img.shields.io/pypi/pyversions/pardata
14+
:target: https://pypi.python.org/pypi/pardata
1515
:alt: PyPI - Python Version
1616

17-
.. image:: https://img.shields.io/pypi/implementation/pydax
18-
:target: https://pypi.python.org/pypi/pydax
17+
.. image:: https://img.shields.io/pypi/implementation/pardata
18+
:target: https://pypi.python.org/pypi/pardata
1919
:alt: PyPI - Implementation
2020

21-
.. image:: https://badges.gitter.im/codait/pydax.svg
22-
:target: https://gitter.im/codait/pydax
21+
.. image:: https://badges.gitter.im/codait/pardata.svg
22+
:target: https://gitter.im/codait/pardata
2323
:alt: Gitter
2424

25-
.. image:: https://github.com/codait/pydax/workflows/Runtime%20Tests/badge.svg
26-
:target: https://github.com/CODAIT/pydax/commit/master
25+
.. image:: https://github.com/codait/pardata/workflows/Runtime%20Tests/badge.svg
26+
:target: https://github.com/CODAIT/pardata/commit/master
2727
:alt: Runtime Tests
2828

29-
.. image:: https://github.com/codait/pydax/workflows/Lint/badge.svg
30-
:target: https://github.com/CODAIT/pydax/commit/master
29+
.. image:: https://github.com/codait/pardata/workflows/Lint/badge.svg
30+
:target: https://github.com/CODAIT/pardata/commit/master
3131
:alt: Lint
3232

33-
.. image:: https://github.com/codait/pydax/workflows/Docs/badge.svg
34-
:target: https://github.com/CODAIT/pydax/commit/master
33+
.. image:: https://github.com/codait/pardata/workflows/Docs/badge.svg
34+
:target: https://github.com/CODAIT/pardata/commit/master
3535
:alt: Docs
3636

37-
.. image:: https://github.com/codait/pydax/workflows/Development%20Environment/badge.svg
38-
:target: https://github.com/CODAIT/pydax/commit/master
37+
.. image:: https://github.com/codait/pardata/workflows/Development%20Environment/badge.svg
38+
:target: https://github.com/CODAIT/pardata/commit/master
3939
:alt: Development Environment
4040

41-
PyDAX is a Python API that enables data consumers and distributors to easily use and share datasets, and establishes a
42-
standard for exchanging data assets. It enables:
41+
ParData (homophone of *partake*) is a Python API that enables data consumers and distributors to easily use and share
42+
datasets, and establishes a standard for exchanging data assets. It enables:
4343

4444
- a data scientist to have a simpler and more unified way to begin working with a wide range of datasets, and
4545
- a data distributor to have a consistent, safe, and open source way to share datasets with interested communities.
@@ -48,24 +48,24 @@ standard for exchanging data assets. It enables:
4848

4949
.. code-block:: python
5050
51-
>>> import pydax
52-
>>> pydax.list_all_datasets()
51+
>>> import pardata
52+
>>> pardata.list_all_datasets()
5353
{'claim_sentences_search': ('1.0.2',),
5454
..., 'wikitext103': ('1.0.1',)}
55-
>>> pydax.load_dataset('wikitext103')
55+
>>> pardata.load_dataset('wikitext103')
5656
{...} # Content of the dataset
5757
5858
Install the Package & its Dependencies
5959
--------------------------------------
6060

61-
To install the latest version of PyDAX, run
61+
To install the latest version of ParData, run
6262

6363
.. code-block:: console
6464
65-
$ pip install pydax
65+
$ pip install pardata
6666
6767
Alternatively, if you have downloaded the source, switch to the source directory (same directory as this README file,
68-
``cd /path/to/pydax-source``) and run
68+
``cd /path/to/pardata-source``) and run
6969

7070
.. code-block:: console
7171
@@ -74,43 +74,43 @@ Alternatively, if you have downloaded the source, switch to the source directory
7474
Quick Start
7575
-----------
7676

77-
Import the package and load a dataset. PyDAX will download `WikiText-103
77+
Import the package and load a dataset. ParData will download `WikiText-103
7878
<https://developer.ibm.com/exchanges/data/all/wikitext-103/>`__ dataset (version ``1.0.1``) if it's not already
7979
downloaded, and then load it.
8080

8181
.. code-block:: python
8282
83-
import pydax
84-
wikitext103_data = pydax.load_dataset('wikitext103')
83+
import pardata
84+
wikitext103_data = pardata.load_dataset('wikitext103')
8585
86-
View available PyDAX datasets and their versions.
86+
View available ParData datasets and their versions.
8787

8888
.. code-block:: python
8989
90-
>>> pydax.list_all_datasets()
90+
>>> pardata.list_all_datasets()
9191
{'claim_sentences_search': ('1.0.2',), ..., 'wikitext103': ('1.0.1',)}
9292
93-
To view your globally set configs for PyDAX, such as your default data directory, use :func:`pydax.get_config`.
93+
To view your globally set configs for ParData, such as your default data directory, use :func:`pardata.get_config`.
9494

9595
.. code-block:: python
9696
97-
>>> pydax.get_config()
97+
>>> pardata.get_config()
9898
Config(DATADIR=PosixPath('dir/to/download/load/from'), ..., DATASET_SCHEMA_FILE_URL='file/to/load/datasets/from')
9999
100-
By default, :func:`pydax.load_dataset` downloads to and loads from
101-
:file:`~/.pydax/data/<dataset-name>/<dataset-version>/`. To change the default data directory, use :func:`pydax.init`.
100+
By default, :func:`pardata.load_dataset` downloads to and loads from
101+
:file:`~/.pardata/data/<dataset-name>/<dataset-version>/`. To change the default data directory, use :func:`pardata.init`.
102102

103103
.. code-block:: python
104104
105-
pydax.init(DATADIR='new/dir/to/download/load/from')
105+
pardata.init(DATADIR='new/dir/to/download/load/from')
106106
107-
Load a previously downloaded dataset using :func:`pydax.load_dataset`. With the new default data dir set, PyDAX now
107+
Load a previously downloaded dataset using :func:`pardata.load_dataset`. With the new default data dir set, ParData now
108108
searches for the `Groningen Meaning Bank <https://developer.ibm.com/exchanges/data/all/groningen-meaning-bank/>`__
109109
dataset (version ``1.0.2``) in :file:`new/dir/to/download/load/from/gmb/1.0.2/`.
110110

111111
.. code-block:: python
112112
113113
gmb_data = load_dataset('gmb', version='1.0.2', download=False) # assuming GMB dataset was already downloaded
114114
115-
To learn more about PyDAX, check out `the documentation <https://pydax.readthedocs.io>`__ and the
116-
`tutorial <https://pydax.readthedocs.io#tutorial>`__.
115+
To learn more about ParData, check out `the documentation <https://pardata.readthedocs.io>`__ and the
116+
`tutorial <https://pardata.readthedocs.io#tutorial>`__.

docs/notebooks/pydax-debater-claim-demo.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@
104104
"cell_type": "markdown",
105105
"metadata": {},
106106
"source": [
107-
"# Download Dataset with PyDAX"
107+
"# Download Dataset with ParData"
108108
]
109109
},
110110
{
111111
"cell_type": "markdown",
112112
"metadata": {},
113113
"source": [
114-
"The PyDAX package will download the DAX dataset and load the training set as a Pandas dataframe."
114+
"The ParData package will download the DAX dataset and load the training set as a Pandas dataframe."
115115
]
116116
},
117117
{
@@ -140,8 +140,8 @@
140140
}
141141
],
142142
"source": [
143-
"import pydax\n",
144-
"pydax.list_all_datasets()"
143+
"import pardata\n",
144+
"pardata.list_all_datasets()"
145145
]
146146
},
147147
{
@@ -163,7 +163,7 @@
163163
}
164164
],
165165
"source": [
166-
"print(pydax.describe_dataset('claim_sentences_search'))"
166+
"print(pardata.describe_dataset('claim_sentences_search'))"
167167
]
168168
},
169169
{
@@ -172,7 +172,7 @@
172172
"metadata": {},
173173
"outputs": [],
174174
"source": [
175-
"claim_sentences_dataset = pydax.load_dataset('claim_sentences_search')\n",
175+
"claim_sentences_dataset = pardata.load_dataset('claim_sentences_search')\n",
176176
"train_data = claim_sentences_dataset['train']"
177177
]
178178
},

0 commit comments

Comments
 (0)