Skip to content

Commit 520cf2a

Browse files
author
BetaBot
committed
update: datagouv/cada.data.gouv.fr
1 parent dd11456 commit 520cf2a

7 files changed

Lines changed: 447 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Current (in progress)
2+
3+
- Nothing yet
4+
5+
## 1.0.0 (2019-07-19)
6+
7+
- Add a `burnthemall` command [#25](https://github.com/etalab/cada.data.gouv.fr/pull/25)
8+
- Use `tqdm` for major commands with loops [#25](https://github.com/etalab/cada.data.gouv.fr/pull/25)
9+
- Python 3 [#28](https://github.com/etalab/cada.data.gouv.fr/pull/28)
10+
- Elastic Search 7.2 [#29](https://github.com/etalab/cada.data.gouv.fr/pull/29)
11+
- Mongo 4.1 [#29](https://github.com/etalab/cada.data.gouv.fr/pull/29)
12+
- Improved pseudonymization [#32](https://github.com/etalab/cada.data.gouv.fr/pull/32)
13+
- Display sample of api calls [#33](https://github.com/etalab/cada.data.gouv.fr/pull/33)
14+
- Fix text query [#33](https://github.com/etalab/cada.data.gouv.fr/pull/33)
15+
16+
17+
## 0.2.1 (2019-07-15)
18+
19+
- Fix advice part roman numerals handling [#13](https://github.com/etalab/cada/pull/13)
20+
- Colorize advices labels [#14](https://github.com/etalab/cada/pull/14)
21+
- Fixes about page [#11](https://github.com/etalab/cada/pull/11)
22+
- Fix the cli encoding handling as well as some formatting issues [#18](https://github.com/etalab/cada/pull/18)
23+
- Footer fixes (svg logo, alignments, https links) [#20](https://github.com/etalab/cada/pull/20)
24+
- Upgrade jQuery, Bootstrap and Flatly assets and fixes responsive layout [#21](https://github.com/etalab/cada/pull/21)
25+
- Fix unicode issue [#26](https://github.com/etalab/cada.data.gouv.fr/pull/26)
26+
27+
## 0.2.0 (2018-10-05)
28+
29+
- Upgrade stack to latest dependencies (Flask 1.0 with `flask.cli`, pytest...) [#6](https://github.com/etalab/cada/pull/6)
30+
- Test and fix alert mails [#7](https://github.com/etalab/cada/pull/7)
31+
- Added "about" page [#9](https://github.com/etalab/cada/pull/9)
32+
- Handle type IV advices [#10](https://github.com/etalab/cada/pull/10)
33+
34+
## 0.1.0 (2014-04-14)
35+
36+
- Initial release
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# CADA
2+
3+
[![Build status][circleci-badge]][circleci-url]
4+
[![Join the chat at https://gitter.im/etalab/cada][gitter-badge]][gitter-url]
5+
6+
7+
A simplistic interface to search and consult CADA advices.
8+
9+
This is the engine behind https://cada.data.gouv.fr.
10+
11+
## Compatibility
12+
13+
CADA has been tested on Python 3.7, MongoDB 4.1 and ElasticSearch 7.2.
14+
15+
The [ElasticSearch ICU Analysis plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/analysis-icu.html) is required.
16+
17+
You can install it with:
18+
19+
```console
20+
elasticsearch-plugin install analysis-icu
21+
```
22+
23+
## Installation
24+
25+
You can install Cada with pip:
26+
27+
```bash
28+
$ pip install cada
29+
```
30+
31+
You need to create the cada working directory, denoted by ``$HOME`` in this documentation:
32+
33+
```bash
34+
$ mkdir -p $HOME && cd $HOME
35+
$ vim cada.cfg # See configuration
36+
$ wget https://cada.data.gouv.fr/export -O data.csv
37+
$ cada load data.csv # Load initial data
38+
$ cada static # Optional: collect static assets for proper caching
39+
$ cada runserver
40+
```
41+
42+
### local development environment
43+
44+
Please make sure you are in a clean [virtualenv](https://virtualenv.pypa.io/en/stable/).
45+
46+
```bash
47+
$ git clone https://github.com/etalab/cada
48+
$ cd cada
49+
$ docker-compose up -d
50+
$ pip install -e .
51+
$ wget https://cada.data.gouv.fr/export -O data.csv
52+
$ cada load data.csv
53+
$ cada reindex
54+
$ cada runserver
55+
```
56+
57+
58+
## Configuration
59+
All configuration is done through the ``cada.cfg`` file in ``$HOME``.
60+
It's basically a Python file with constants defined in it:
61+
62+
* ``SERVER_NAME``: the public server name. Mainly used in emails.
63+
* ``SECRET_KEY``: the common crypto hash. e.g. sessions. `openssl rand -hex 24` should be a good start.
64+
* ``ELASTICSEARCH_URL``: the ElasticSearch server URL in ``host:port`` format. Default to ``localhost:9200`` if not set
65+
* ``MONGODB_SETTINGS``: a dictionary to configure MongoDB. Default to ``{'DB': 'cada'}``. See [the official flask-mongoengine documentation](https://flask-mongoengine.readthedocs.org/en/latest/) for more details.
66+
67+
### Mails
68+
69+
Mail server configuration is done through the following variables:
70+
71+
* ``MAIL_SERVER``: SMTP server hostname. Default to ``localhost``.
72+
* ``MAIL_PORT``: SMTP server port. Default to ``25``.
73+
* ``MAIL_USE_TLS``: activate TLS. Default to ``False``.
74+
* ``MAIL_USE_SSL``: activate SSL. Default to ``False``.
75+
* ``MAIL_USERNAME``: optional SMTP server username.
76+
* ``MAIL_PASSWORD``: optional SMTP server password.
77+
* ``MAIL_DEFAULT_SENDER``: Sender email used for mailings. Default to ``cada@localhost``.
78+
* ``ANON_ALERT_MAIL``: destination mail for anonymisation alerts. Default to ``cada.alert@localhost``.
79+
80+
See the [official Flask-Mail documentation](http://pythonhosted.org/flask-mail/#configuring-flask-mail) for more details.
81+
82+
### Sentry
83+
84+
There is an optional support for Sentry.
85+
You need to install the required dependencies:
86+
87+
```bash
88+
$ pip install raven[flask]
89+
# Or to install it with cada
90+
$ pip install cada[sentry]
91+
```
92+
93+
You need to add your Sentry DSN to the configuration
94+
95+
```python
96+
SENTRY_DSN = 'https://xxxxx:xxxxxx@sentry.mydomain.com/id'
97+
```
98+
99+
100+
### Piwik
101+
102+
There is an optional Piwik support.
103+
You simply need to add your Piwik server URL and your Piwik project ID to the configuration:
104+
105+
```python
106+
PIWIK_URL = 'piwik.mydomain.com'
107+
PIWIK_ID = X
108+
```
109+
110+
[circleci-url]: https://circleci.com/gh/etalab/cada
111+
[circleci-badge]: https://circleci.com/gh/etalab/cada.svg?style=shield
112+
[gitter-badge]: https://badges.gitter.im/Join%20Chat.svg
113+
[gitter-url]: https://gitter.im/etalab/cada

repos/datagouv/cada.data.gouv.fr/commits.txt

Whitespace-only changes.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: '3'
2+
3+
services:
4+
db:
5+
image: mongo:4.1
6+
volumes:
7+
- data-db:/data/db
8+
ports:
9+
- "27017:27017"
10+
11+
search:
12+
build: ./elasticsearch
13+
environment:
14+
discovery.type: single-node
15+
volumes:
16+
- data-search:/usr/share/elasticsearch/data
17+
ports:
18+
- "9200:9200"
19+
20+
volumes:
21+
data-db:
22+
data-search:
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
{
2+
"id": 18761921,
3+
"node_id": "MDEwOlJlcG9zaXRvcnkxODc2MTkyMQ==",
4+
"name": "cada.data.gouv.fr",
5+
"full_name": "datagouv/cada.data.gouv.fr",
6+
"private": false,
7+
"owner": {
8+
"login": "datagouv",
9+
"id": 66628206,
10+
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY2NjI4MjA2",
11+
"avatar_url": "https://avatars.githubusercontent.com/u/66628206?v=4",
12+
"gravatar_id": "",
13+
"url": "https://api.github.com/users/datagouv",
14+
"html_url": "https://github.com/datagouv",
15+
"followers_url": "https://api.github.com/users/datagouv/followers",
16+
"following_url": "https://api.github.com/users/datagouv/following{/other_user}",
17+
"gists_url": "https://api.github.com/users/datagouv/gists{/gist_id}",
18+
"starred_url": "https://api.github.com/users/datagouv/starred{/owner}{/repo}",
19+
"subscriptions_url": "https://api.github.com/users/datagouv/subscriptions",
20+
"organizations_url": "https://api.github.com/users/datagouv/orgs",
21+
"repos_url": "https://api.github.com/users/datagouv/repos",
22+
"events_url": "https://api.github.com/users/datagouv/events{/privacy}",
23+
"received_events_url": "https://api.github.com/users/datagouv/received_events",
24+
"type": "Organization",
25+
"user_view_type": "public",
26+
"site_admin": false
27+
},
28+
"html_url": "https://github.com/datagouv/cada.data.gouv.fr",
29+
"description": "A simple interface to search and display CADA advices",
30+
"fork": false,
31+
"url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr",
32+
"forks_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/forks",
33+
"keys_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/keys{/key_id}",
34+
"collaborators_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/collaborators{/collaborator}",
35+
"teams_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/teams",
36+
"hooks_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/hooks",
37+
"issue_events_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/issues/events{/number}",
38+
"events_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/events",
39+
"assignees_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/assignees{/user}",
40+
"branches_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/branches{/branch}",
41+
"tags_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/tags",
42+
"blobs_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/git/blobs{/sha}",
43+
"git_tags_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/git/tags{/sha}",
44+
"git_refs_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/git/refs{/sha}",
45+
"trees_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/git/trees{/sha}",
46+
"statuses_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/statuses/{sha}",
47+
"languages_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/languages",
48+
"stargazers_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/stargazers",
49+
"contributors_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/contributors",
50+
"subscribers_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/subscribers",
51+
"subscription_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/subscription",
52+
"commits_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/commits{/sha}",
53+
"git_commits_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/git/commits{/sha}",
54+
"comments_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/comments{/number}",
55+
"issue_comment_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/issues/comments{/number}",
56+
"contents_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/contents/{+path}",
57+
"compare_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/compare/{base}...{head}",
58+
"merges_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/merges",
59+
"archive_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/{archive_format}{/ref}",
60+
"downloads_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/downloads",
61+
"issues_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/issues{/number}",
62+
"pulls_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/pulls{/number}",
63+
"milestones_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/milestones{/number}",
64+
"notifications_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/notifications{?since,all,participating}",
65+
"labels_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/labels{/name}",
66+
"releases_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/releases{/id}",
67+
"deployments_url": "https://api.github.com/repos/datagouv/cada.data.gouv.fr/deployments",
68+
"created_at": "2014-04-14T13:41:10Z",
69+
"updated_at": "2026-02-11T09:01:44Z",
70+
"pushed_at": "2025-05-15T13:45:05Z",
71+
"git_url": "git://github.com/datagouv/cada.data.gouv.fr.git",
72+
"ssh_url": "git@github.com:datagouv/cada.data.gouv.fr.git",
73+
"clone_url": "https://github.com/datagouv/cada.data.gouv.fr.git",
74+
"svn_url": "https://github.com/datagouv/cada.data.gouv.fr",
75+
"homepage": "https://cada.data.gouv.fr",
76+
"size": 530,
77+
"stargazers_count": 18,
78+
"watchers_count": 18,
79+
"language": "Python",
80+
"has_issues": true,
81+
"has_projects": true,
82+
"has_downloads": true,
83+
"has_wiki": true,
84+
"has_pages": false,
85+
"has_discussions": false,
86+
"forks_count": 9,
87+
"mirror_url": null,
88+
"archived": false,
89+
"disabled": false,
90+
"open_issues_count": 12,
91+
"license": {
92+
"key": "agpl-3.0",
93+
"name": "GNU Affero General Public License v3.0",
94+
"spdx_id": "AGPL-3.0",
95+
"url": "https://api.github.com/licenses/agpl-3.0",
96+
"node_id": "MDc6TGljZW5zZTE="
97+
},
98+
"allow_forking": true,
99+
"is_template": false,
100+
"web_commit_signoff_required": false,
101+
"has_pull_requests": true,
102+
"pull_request_creation_policy": "all",
103+
"topics": [
104+
"advice",
105+
"api",
106+
"cada",
107+
"flask",
108+
"france",
109+
"opendata",
110+
"search"
111+
],
112+
"visibility": "public",
113+
"forks": 9,
114+
"open_issues": 12,
115+
"watchers": 18,
116+
"default_branch": "master",
117+
"permissions": {
118+
"admin": false,
119+
"maintain": false,
120+
"push": false,
121+
"triage": false,
122+
"pull": false
123+
},
124+
"temp_clone_token": "",
125+
"custom_properties": {
126+
127+
},
128+
"organization": {
129+
"login": "datagouv",
130+
"id": 66628206,
131+
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY2NjI4MjA2",
132+
"avatar_url": "https://avatars.githubusercontent.com/u/66628206?v=4",
133+
"gravatar_id": "",
134+
"url": "https://api.github.com/users/datagouv",
135+
"html_url": "https://github.com/datagouv",
136+
"followers_url": "https://api.github.com/users/datagouv/followers",
137+
"following_url": "https://api.github.com/users/datagouv/following{/other_user}",
138+
"gists_url": "https://api.github.com/users/datagouv/gists{/gist_id}",
139+
"starred_url": "https://api.github.com/users/datagouv/starred{/owner}{/repo}",
140+
"subscriptions_url": "https://api.github.com/users/datagouv/subscriptions",
141+
"organizations_url": "https://api.github.com/users/datagouv/orgs",
142+
"repos_url": "https://api.github.com/users/datagouv/repos",
143+
"events_url": "https://api.github.com/users/datagouv/events{/privacy}",
144+
"received_events_url": "https://api.github.com/users/datagouv/received_events",
145+
"type": "Organization",
146+
"user_view_type": "public",
147+
"site_admin": false
148+
},
149+
"network_count": 9,
150+
"subscribers_count": 10
151+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"url": "https://github.com/datagouv/cada.data.gouv.fr",
3+
"name": "cada.data.gouv.fr",
4+
"description": "Ce projet est une interface simple pour rechercher et consulter les conseils de CADA. Il s'agit du moteur derrière le site https://cada.data.gouv.fr.",
5+
"language": "Python",
6+
"features": [
7+
"Recherche",
8+
"API & Intégrations",
9+
"Gestion documentaire & Fichiers"
10+
],
11+
"audience": "Professionnels",
12+
"dependencies": [
13+
"Flask",
14+
"MongoDB",
15+
"ElasticSearch",
16+
"jQuery",
17+
"Bootstrap"
18+
],
19+
"components": [
20+
"API REST & GraphQL",
21+
"Python (scripts & backend)",
22+
"HTML / CSS / Templates visuels",
23+
"MongoDB & NoSQL",
24+
"ElasticSearch & SQL"
25+
],
26+
"auth": {
27+
"methods": [
28+
"none"
29+
]
30+
},
31+
"tests": [
32+
"pytest"
33+
],
34+
"workflows": [],
35+
"lastActivity": "2025-05-15T13:45:05Z",
36+
"status": "active",
37+
"license": "AGPL-3.0",
38+
"hasDocumentation": true,
39+
"metrics": {
40+
"stars": 18,
41+
"forks": 9,
42+
"contributors": null,
43+
"openIssues": 12
44+
},
45+
"tags": [
46+
"Données & Open Data",
47+
"API",
48+
"Python",
49+
"Flask",
50+
"ElasticSearch",
51+
"MongoDB"
52+
]
53+
}

0 commit comments

Comments
 (0)