L'INPI a communiquΓ© cela le 03/04/2023:
Madame, Monsieur,
En tant que licenciΓ© aux donnΓ©es du RNE nous vous informons de la fermeture des anciennes applications de diffusion des donnΓ©es du RNCS le 30 juin 2023.
Les API et le serveur FTP RNCS ne seront plus accessibles, les donnΓ©es Γ©tant dΓ©sormais disponibles sur les nouvelles applications API et SFTP du RNE au format JSON et PDF.
Nous vous rappelons par ailleurs que les quotas de tΓ©lΓ©chargement sont de 10 Go ou 10 000 appels par jour.
Vous pouvez retrouver lβensemble des documentations techniques dans lβonglet Β« espace open data Β» du portail DATA INPI.
Qui est partant pour faire une version de Enthic avec le FTP du RNE?
Ce projet est en pause faute de temps et d'Γ©nergie. Je me concentre maintenant sur un projet similaire, IN FRANCE, plus complet qui utilise ces mΓͺmes donnΓ©es pour Γ©tudier l'Γ©conomie FranΓ§aise. Merci Γ tous ceux qui ont collaborΓ©. N'hΓ©sitez pas Γ me christophe.brun@papit.fr pour toute question.
This projet is on hold due to a lack of time and energy. I am focusing on IN FRANCE project, a similar one, more complete, studying the French economy. Thank you all contributor. Don't hesitate to contact me at christophe.brun@papit.fr.
Project that treats data from opendata-rncs.inpi.fr. They contain xml
files of the account declaration of all french societies. The overall project
is meant to be low-code and open source. Aim to provide ethical indicators on companies.
Information media is a MySQL database, CSV files, web visualisation and a
swagger API. The search engine endpoint return a JSON-LD (Hydra) compliant JSON.
Company JSON cannot conform to JSON-LD Organization type due to lack of data
(contact for instance).
Score and indicators are calculated by batch, sql and why not using
fancy libraries. Help in data treatment to improve scoring would be appreciated.
Scoring, AI, data scrapping for segmentation. Shell and python must be launched
from their corresponding directory ./sh and ./py.
Synaptic packages have to be installed libxml2-utils mysql-server tree python3.
Pip packages as well have to be installed for development purpose.
$ sh ./install-dependencies.shTo install the enthic python package only.
$ sh ./install-wheel.shData are stored in zip files on opendata-rncs.inpi.fr, group by day. Each XML is in a zip. The first step is then to read the XML files and convert data into "bundle.tmp" and "identity.tmp" You must create folders 'input' and 'output' at the root of the project, and put some daily zipfile named like "bilans_saisis_<date>.zip" in 'input' folder.
$ sh ./clear-data.shAn XSD is provided by the INPI. This step verify all the XML are following this XSD. XML not following this XSD have their filename printed out.
$ sh ./check-data.shCreate two CSV based on the output generated by clear-data.sh. One for each table, identity and bundle.
$ sh ./csv-table.shCreate database, tables and indexes. The content of the two tables come from the previously generated CSV files.
$ sh ./database-creation.sh --password=<your mysql password>A flask REST API can distribute data over the web. Following Swagger standard.
$ python3 ./app.pyDo What The Fuck You Want To Public License (WTFPL)
- snake_case for variables, definition and CamelCase for classes.
- Only argument is configuration file for python.
- No output or print information (just raw results authorized), just log and files.
- Sonar Qube integration.
- Pytest python and API testing.
- Autodocumentation using Sphinx 1.8.5.
- Benchmark of CPython VS Pypy.
- Common sens and clean code.
$ sh ./install-wheel.shOnly python package is tested. Used test framework is pytest. Tests can be run
via pytest in the python/enthic/ directory.
Generate HTML documentation via Sphinx documentation framework. Sphinx is called programmatically at the beginning of setup.py. Therefore the above installation build the doc at the same time.
./enthic
βββ account-ontology.csv
βββ bilans-saisis-v1.1.xsd
βββ .gitignore
βββ enthic.dbdiagram.io
βββ input
βββ LICENSE.md
βββ output
βΒ Β βββ bundle.csv
βΒ Β βββ identity.csv
βββ python
βΒ Β βββ doc
βΒ Β βΒ Β βββ conf.py
βΒ Β βΒ Β βββ index.rst
βΒ Β βΒ Β βββ papit.png
βΒ Β βββ enthic
βΒ Β βΒ Β βββ app.py
βΒ Β βΒ Β βββ company
βΒ Β βΒ Β βΒ Β βββ company.py
βΒ Β βΒ Β βΒ Β βββ denomination_company.py
βΒ Β βΒ Β βΒ Β βββ __init__.py
βΒ Β βΒ Β βΒ Β βββ siren_company.py
βΒ Β βΒ Β βββ database
βΒ Β βΒ Β βΒ Β βββ mysql.py
βΒ Β βΒ Β βΒ Β βββ mysql_data.py
βΒ Β βΒ Β βΒ Β βββ fetchall.py
βΒ Β βΒ Β βΒ Β βββ __init__.py
βΒ Β βΒ Β βββ configuration.json
βΒ Β βΒ Β βββ conftest.py
βΒ Β βΒ Β βββ decorator
βΒ Β βΒ Β βΒ Β βββ check_sql_injection.py
βΒ Β βΒ Β βΒ Β βββ __init__.py
βΒ Β βΒ Β βΒ Β βββ insert_request.py
βΒ Β βΒ Β βββ extract_bundle.py
βΒ Β βΒ Β βββ __init__.py
βΒ Β βΒ Β βββ ontology.py
βΒ Β βΒ Β βββ static
βΒ Β βΒ Β βΒ Β βββ 404.html
βΒ Β βΒ Β βΒ Β βββ 500.html
βΒ Β βΒ Β βΒ Β βββ bootstrap.min.css
βΒ Β βΒ Β βΒ Β βββ documentation
βΒ Β βΒ Β βΒ Β βΒ Β βββ .buildinfo
βΒ Β βΒ Β βΒ Β βΒ Β βββ doctrees
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ environment.pickle
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ index.doctree
βΒ Β βΒ Β βΒ Β βΒ Β βββ genindex.html
βΒ Β βΒ Β βΒ Β βΒ Β βββ index.html
βΒ Β βΒ Β βΒ Β βΒ Β βββ _modules
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ company
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ company.html
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ denomination_company.html
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ siren_company.html
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ decorator
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ check_sql_injection.html
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ insert_request.html
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ index.html
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ utils
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ error_json_response.html
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ json_response.html
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ not_found_response.html
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ ok_json_response.html
βΒ Β βΒ Β βΒ Β βΒ Β βββ .nojekyll
βΒ Β βΒ Β βΒ Β βΒ Β βββ objects.inv
βΒ Β βΒ Β βΒ Β βΒ Β βββ py-modindex.html
βΒ Β βΒ Β βΒ Β βΒ Β βββ search.html
βΒ Β βΒ Β βΒ Β βΒ Β βββ searchindex.js
βΒ Β βΒ Β βΒ Β βΒ Β βββ _sources
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ index.rst.txt
βΒ Β βΒ Β βΒ Β βΒ Β βββ _static
βΒ Β βΒ Β βΒ Β βΒ Β βββ ajax-loader.gif
βΒ Β βΒ Β βΒ Β βΒ Β βββ alabaster.css
βΒ Β βΒ Β βΒ Β βΒ Β βββ basic.css
βΒ Β βΒ Β βΒ Β βΒ Β βββ comment-bright.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ comment-close.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ comment.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ custom.css
βΒ Β βΒ Β βΒ Β βΒ Β βββ doctools.js
βΒ Β βΒ Β βΒ Β βΒ Β βββ documentation_options.js
βΒ Β βΒ Β βΒ Β βΒ Β βββ down.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ down-pressed.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ file.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ jquery-3.2.1.js
βΒ Β βΒ Β βΒ Β βΒ Β βββ jquery.js
βΒ Β βΒ Β βΒ Β βΒ Β βββ language_data.js
βΒ Β βΒ Β βΒ Β βΒ Β βββ minus.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ papit.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ plus.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ pygments.css
βΒ Β βΒ Β βΒ Β βΒ Β βββ searchtools.js
βΒ Β βΒ Β βΒ Β βΒ Β βββ underscore-1.3.1.js
βΒ Β βΒ Β βΒ Β βΒ Β βββ underscore.js
βΒ Β βΒ Β βΒ Β βΒ Β βββ up.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ up-pressed.png
βΒ Β βΒ Β βΒ Β βΒ Β βββ websupport.js
βΒ Β βΒ Β βΒ Β βββ favicon.ico
βΒ Β βΒ Β βΒ Β βββ google7775f38904c3d3fc.html
βΒ Β βΒ Β βΒ Β βββ index.html
βΒ Β βΒ Β βΒ Β βββ jquery.min.js
βΒ Β βΒ Β βΒ Β βββ robot.txt
βΒ Β βΒ Β βΒ Β βββ sitemap.xml
βΒ Β βΒ Β βΒ Β βββ swagger.json
βΒ Β βΒ Β βΒ Β βββ swagger-ui-bundle.js
βΒ Β βΒ Β βΒ Β βββ swagger-ui-bundle.js.map
βΒ Β βΒ Β βΒ Β βββ swagger-ui.css
βΒ Β βΒ Β βΒ Β βββ swagger-ui.css.map
βΒ Β βΒ Β βΒ Β βββ swagger-ui.js
βΒ Β βΒ Β βΒ Β βββ swagger-ui.js.map
βΒ Β βΒ Β βΒ Β βββ swagger-ui-standalone-preset.js
βΒ Β βΒ Β βΒ Β βββ swagger-ui-standalone-preset.js.map
βΒ Β βΒ Β βββ test_app.py
βΒ Β βΒ Β βββ test_extract_bundle.py
βΒ Β βΒ Β βββ test_treat_bundle.py
βΒ Β βΒ Β βββ treat_bundle.py
βΒ Β βΒ Β βββ utils
βΒ Β βΒ Β βββ error_json_response.py
βΒ Β βΒ Β βββ conversion.py
βΒ Β βΒ Β βββ __init__.py
βΒ Β βΒ Β βββ json_response.py
βΒ Β βΒ Β βββ not_found_response.py
βΒ Β βΒ Β βββ ok_json_response.py
βΒ Β βββ __init__.py
βΒ Β βββ MANIFEST.in
βΒ Β βββ setup.cfg
βΒ Β βββ setup.py
βββ README.rst
βββ sh
βΒ Β βββ check-data.sh
βΒ Β βββ clear-data.sh
βΒ Β βββ csv-table.sh
βΒ Β βββ database-creation.sh
βΒ Β βββ install-dependencies.sh
βΒ Β βββ install-wheel.sh
βββ sonar-project.properties
βββ sql
βββ create-database-enthic.sql
βββ create-index-bundle.sql
βββ create-index-identity.sql
βββ create-table-bundle.sql
βββ create-table-identity.sql
βββ create-table-request.sql
βββ insert-bundle.sql
βββ insert-identity.sqlYou can donate to support Python and Open Source development.
BTC 32JSkGXcBK2dirP6U4vCx9YHHjV5iSYb1G
ETH 0xF556505d13aC9a820116d43c29dc61417d3aB2F8