Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
hkage committed Nov 29, 2022
2 parents 6f4ebc3 + 1b33b7d commit a58acc5
Show file tree
Hide file tree
Showing 22 changed files with 541 additions and 316 deletions.
101 changes: 0 additions & 101 deletions CHANGELOG.md

This file was deleted.

128 changes: 128 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
Changelog
=========

Development
-----------

0.10.0 (2022-11-29)
-------------------

* `#49 <https://github.com/rheinwerk-verlag/pganonymize/pull/49>`_: Configure psycopg2 to support UUID objects
* `#48 <https://github.com/rheinwerk-verlag/pganonymize/pull/48>`_: Add support for localized "Faker" data

0.9.0 (2022-11-23)
------------------

* `#46 <https://github.com/rheinwerk-verlag/pganonymize/pull/46>`_: Broken Python 2.7 compatibility
* `#45 <https://github.com/rheinwerk-verlag/pganonymize/pull/45>`_: Add partial masked provider (`Tilley <https://github.com/Tilley/>`_)
* `#44 <https://github.com/rheinwerk-verlag/pganonymize/pull/44>`_: Pass kwargs through to faker functions from schema (`Tilley <https://github.com/Tilley>`_)

0.8.0 (2022-03-15)
------------------

* `#39 <https://github.com/rheinwerk-verlag/pganonymize/issues/39>`_: Renamed project to "pganonymize"
* `#38 <https://github.com/rheinwerk-verlag/pganonymize/pull/38>`_: Allow environment variables in schema definition (`nurikk <https://github.com/nurikk>`_)

0.7.0 (2021-11-30)
------------------

* `#34 <https://github.com/rheinwerk-verlag/pganonymize/issues/34>`_: Subprocess "run" being used on Python2.7
* `#35 <https://github.com/rheinwerk-verlag/pganonymize/issues/35>`_: parmap no longer supports Python 2.7
* Dropped Python 3.5 support
* Pinned libraries Python 2.7
* `#32 <https://github.com/rheinwerk-verlag/pganonymize/pull/32>`_: Fixed pg_dump arguments (`korsar182 <https://github.com/korsar182>`_)
* Simplified provider registration (no metaclass usage anymore)

0.6.1 (2021-07-13)
------------------

* Added missing dependencies for the `setup.py`

0.6.0 (2021-07-13)
------------------

* `#28 <https://github.com/rheinwerk-verlag/pganonymize/pull/25>`_: Add json support (`nurikk <https://github.com/nurikk>`_)
* `#27 <https://github.com/rheinwerk-verlag/pganonymize/pull/25>`_: Better anonymisation (`nurikk <https://github.com/nurikk>`_)
* `#25 <https://github.com/rheinwerk-verlag/pganonymize/pull/25>`_: Remove column specification for `cursor.copy_from` call (`nurikk <https://github.com/nurikk>`_)

0.5.0 (2021-06-30)
------------------

* `#22 <https://github.com/rheinwerk-verlag/pganonymize/pull/22>`_: Fix table and column name quotes in `cursor.copy_from` call (`nurikk <https://github.com/nurikk>`_)
* `#23 <https://github.com/rheinwerk-verlag/pganonymize/pull/23>`_: Allow uniq faker (`nurikk <https://github.com/nurikk>`_)

0.4.1 (2021-05-27)
------------------

* `#19 <https://github.com/rheinwerk-verlag/pganonymize/pull/19>`_: Make chunk size in the table definition dynamic (`halilkaya <https://github.com/halilkaya>`_)

0.4.0 (2021-05-05)
------------------

* `#18 <https://github.com/rheinwerk-verlag/pganonymize/pull/18>`_: Specify (SQL WHERE) search_condition, to filter the table for rows to be anonymized (`bobslee <https://github.com/bobslee>`_)
* `#17 <https://github.com/rheinwerk-verlag/pganonymize/pull/17>`_: Fix anonymizing error if there is a JSONB column in a table (`koptelovav <https://github.com/koptelovav>`_)

0.3.3 (2021-04-16)
------------------

* `#16 <https://github.com/rheinwerk-verlag/pganonymize/issues/16>`_: Preserve column and table cases during the copy process

0.3.2 (2021-01-25)
------------------

* `#15 <https://github.com/rheinwerk-verlag/pganonymize/pull/15>`_: Fix for exclude bug (`abhinavvaidya90 <https://github.com/abhinavvaidya90>`_)

0.3.1 (2020-12-04)
------------------

* `#13 <https://github.com/rheinwerk-verlag/pganonymize/pull/13>`_: Fixed a syntax error if no truncated tables are defined (`ray-man <https://github.com/ray-man>`_)

0.3.0 (2020-02-11)
------------------

* Use `python-poetry <https://github.com/python-poetry/poetry>`_ for requirements management
* Added commandline argument to list all available providers (#4)
* Added commandline argument to create a dump file (#5)
* Execute table truncation in one statement to avoid foreign key constraint errors (thanks to `W1ldPo1nter <https://github.com/W1ldPo1nter>`_)

0.2.4 (2020-01-03)
------------------

* Fixed several issues with the usage of ``dict.keys`` and Python 3

0.2.3 (2020-01-02)
------------------

* Fixed the wrong cStringIO import for Python 3
* Removed Travis-CI file in favor of the Github actions

0.2.2 (2020-01-02)
------------------

* Hide the progressbar completely if verbose is set to ``False``
* Restructured the requirement files and added flake8 to Travis CI

0.2.1 (2019-12-20)
------------------

* Added field based, regular expression excludes (to skip data under certain conditions).
Currently only regular expressions are supported and the exclusion affects the whole row,
not just one single column.

0.2.0 (2019-12-20)
------------------

* Added provider classes
* Added new providers:
* choice - returns a random list element
* mask - replaces the original value with a static sign

0.1.1 (2019-12-18)
------------------

Changed setup.py

0.1.0 (2019-12-16)
------------------

Initial release of the prototype
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ Making changes
Create a fork if you want to make changes or clone the repo if you want a readonly access to the current development
version:

.. code-block:: sh
.. code-block:: bash
$ git clone [email protected]:rheinwerk-verlag/postgresql-anonymizer.git
$ cd postgresql-anonymizer
For the development use a virtualenv or install the requirements directly:

.. code-block:: sh
.. code-block:: bash
$ sudo pip install -r requirements.txt
Expand Down
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ Installation

The default installation method is to use ``pip``:

.. code-block:: sh
.. code-block::
$ pip install pganonymize
Usage
-----

.. code-block:: sh
.. code-block::
usage: pganonymize [-h] [-v] [-l] [--schema SCHEMA] [--dbname DBNAME]
[--user USER] [--password PASSWORD] [--host HOST]
Expand Down Expand Up @@ -94,7 +94,7 @@ all anonymization rules for that database. Take a look at the `schema documentat

Example calls:

.. code-block:: sh
.. code-block::
$ pganonymize --schema=myschema.yml \
--dbname=test_database \
Expand All @@ -118,13 +118,13 @@ With the ``--dump-file`` argument it is possible to create a dump file after ano
that the ``pg_dump`` command from the ``postgresql-client-common`` library is necessary to create the dump file for the
database, e.g. under Linux:

.. code-block:: sh
.. code-block::
$ sudo apt-get install postgresql-client-common
Example call:

.. code-block:: sh
.. code-block::
$ pganonymize --schema=myschema.yml \
--dbname=test_database \
Expand All @@ -139,13 +139,13 @@ Docker

If you want to run the anonymizer within a Docker container you first have to build the image:

.. code-block:: sh
.. code-block::
$ docker build -t pganonymize .
After that you can pass a schema file to the container, using Docker volumes, and call the anonymizer:

.. code-block:: sh
.. code-block::
$ docker run \
-v <path to your schema>:/schema.yml \
Expand Down
1 change: 0 additions & 1 deletion docs/changelog.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../CHANGELOG.rst
10 changes: 3 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
import sys
import os

from recommonmark.parser import CommonMarkParser

# If extensions (or modules to document with autodoc) are in another
# directory, add these directories to sys.path here. If the directory is
# relative to the documentation root, use os.path.abspath to make it
Expand Down Expand Up @@ -47,12 +45,10 @@
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

source_parsers = {
'.md': CommonMarkParser,
}
#source_parsers = {}

# The suffix of source filenames.
source_suffix = ['.rst', '.md']
source_suffix = ['.rst']

# The encoding of source files.
#source_encoding = 'utf-8-sig'
Expand Down Expand Up @@ -148,7 +144,7 @@
# here, relative to this directory. They are copied after the builtin
# static files, so a file named "default.css" will overwrite the builtin
# "default.css".
#html_static_path = ['_static']
html_static_path = ['_static']

# If not '', a 'Last updated on:' timestamp is inserted at every page
# bottom, using the given strftime format.
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Contents:

readme
schema
localization
api
tests
documentation
Expand Down
Loading

0 comments on commit a58acc5

Please sign in to comment.