nephila/dev/: funes-cli-0.4.1 metadata and description

Homepage | Simple index

Manager for Funes ES cluster

author Nephila
author_email team@nephila.it
classifiers
  • Development Status :: 2 - Pre-Alpha
  • Intended Audience :: Developers
  • Natural Language :: English
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.5
  • Programming Language :: Python :: 3.6
keywords funes_cli
platform
  • UNKNOWN
requires_dist
  • click
  • cx-oracle
  • elasticsearch
  • python-dateutil
  • six
File Tox results History
funes_cli-0.4.1-py2.py3-none-any.whl
Size
18 KB
Type
Python Wheel
Python
2.7
funes_cli-0.4.1.tar.gz
Size
17 KB
Type
Source
=========
Funes CLI
=========


Manager for Funes ES cluster

------------
Installation
------------

* ``pip install --user funes-cli``
* `Setup cx_Oracle environment`_
* Install ``apt install libaio1``
* Optionally connect to the VPN


-----
Usage
-----

Configuration options must be provided through a ``config.json`` file. Example::

{
"credentials": { # Oracle connection data
"port": 1521,
"user": "CALIPSO",
"sid": "ADBSVI",
"password": "calipso",
"host": "10.24.0.51"
},
"debug": true, # Default debug status
"last_update_date": "2017-12-24", # Default start date
"query": "", # SQL WHERE clauses
"es": { # Elastic search cluster connection data
"url": "http://:@localhost:9200/",
"index": "funes",
"index_codes": "funes_codes"
}
}

Create index
------------

Create the ES index, eventually dropping the one with the same name
which might already exists

Index name defaults to its ``config.json`` value if not provided.

``funes index [--name='index-name']``

Import data
-----------

Import data from the provided Oracle datasource on the given ES index,
starting from the given date (date is optional: if not given all the records
will be imported).

Index name and date default to their respective
``config.json`` values if not provided.

``funes data [--name='index-name'] [--date='import-date']``

A ``query`` attribute can be populated in ``config.json`` with valid SQL WHERE
clauses that will be added to the query AND-ed to the date filter,

---------------------
Connecting to the VPN
---------------------

* Download `setup script`_
* Launch vpn client: ``/opt/cisco/anyconnect/bin/vpn connect vpn.messaggerie.it``
* Provide access data as requested

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

This package requires `pipenv`_ and `pyenv`_ to work.

Check their respective documentation to see how to install them.

-------
Credits
-------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
.. _`Setup cx_Oracle environment`: http://cx-oracle.readthedocs.io/en/latest/installation.html
.. _`setup script`: https://vpn.messaggerie.it/CACHE/stc/4/binaries/vpnsetup.sh
.. _`pipenv`: https://docs.pipenv.org/
.. _`pyenv`: https://github.com/pyenv/pyenv-installer


=======
History
=======

0.4.1 (2018-10-31)
------------------

* [FUNES-29] Rename campi indice (fixes)


0.4.0 (2018-10-31)
------------------

* [FUNES-29] Rename campi indice


0.3.2 (2018-10-24)
------------------

* [FUNES-30] Ricerca per EDITORI.DENOMINAZIONE va in errore
* [FUNES-31] Ricerca per denominazione distributore prodotto non funziona
* [FUNES-32] Ricerca per descrizione settore e scaffale non funziona


0.3.1 (2018-10-03)
------------------

* Update installation docs
* [FUNES-28] fix CODICE_PRIMARIO_QUALIF
* [FUNES-2] remove PREZZO.CURRENCY.CC and PREZZO.TASSAZIONE_TIPO.CC


0.3.0 (2018-09-06)
------------------

* [FUNES-2] Campi da eliminare dall'indice
* [FUNES-3] Struttura ATTRIBUTI.STRUTTURATI ridondante
* [FUNES-4] FORNITORI_PRODOTTO.DATA_LIMITE fanno parte di FORNITORI_PRODOTTO.RESO
* [FUNES-5] Accorpamento LINGUE e LINGUE_RUOLI
* [FUNES-6] DATA_PREVISTA_COMMERCIALIZZ deve essere una stringa
* [FUNES-7] Aggiunta campi di ricerca nell'app Web
* [FUNES-8] Ricerca per FORMATO_LIBRO
* [FUNES-24] Modifica struttura OPERA_AMBITO
* [FUNES-28] Modifica a struttura oggetto CODICE_PRIMARIO_QUALIF


0.2.8 (2018-08-18)
------------------

* [FUNES-14] Change type of COLLEGATI.CODICE_PRIMARIO (long -> keyword)
* [FUNES-21/23] Fix for search by PREZZO.CURRENCY.CODICE/PREZZO.TASSAZIONE_TIPO.CODICE
* [FUNES-16-17] Fix FORNITORI_PRODOTTO.DATE_* naming
* [FUNES-22] Fix for search by PREZZO.TASSAZIONE_PERCENTUALE
* Convert empty string to 0 for fields ending in '_CC'

0.2.7 (2018-06-06)
------------------

* Handle log files path

0.2.6 (2018-06-06)
------------------

* fixes

0.2.5 (2018-02-08)
------------------

* Apply safe_list_get to some fields

0.2.4 (2018-02-07)
------------------

* Updated FORNITORI_PRODOTTO date_* fields names

0.2.3 (2018-01-30)
------------------

* Change COLLEGATI CODICE_PRIMARIO and ID from integer to long

0.2.2 (2017-12-29)
------------------

* Minor index fixes

0.2.1 (2017-12-28)
------------------

* Add switch to enable import of calipso codes

0.2.0 (2017-12-28)
------------------

* Import calipso codes in an external index

0.1.1 (2017-12-28)
------------------

* Always strip before split
* Allow to specify custom queries in config.json

0.1.0 (2017-12-24)
------------------

* First release.




Render warnings:
<string>:101: (SEVERE/4) Title level inconsistent:

0.4.1 (2018-10-31)
------------------