Skip to content

Commit 79f235c

Browse files
committed
Rename package to mosquito_alert
1 parent 93b7946 commit 79f235c

File tree

216 files changed

+928
-863
lines changed

Some content is hidden

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

216 files changed

+928
-863
lines changed

.github/workflows/python.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
55

6-
name: mosquito_alert_api Python package
6+
name: mosquito_alert Python package
77

88
on: [push, pull_request]
99

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ stages:
1212
script:
1313
- pip install -r requirements.txt
1414
- pip install -r test-requirements.txt
15-
- pytest --cov=mosquito_alert_api
15+
- pytest --cov=mosquito_alert
1616

1717
pytest-3.8:
1818
extends: .pytest

.openapi-generator/FILES

+139-74
Original file line numberDiff line numberDiff line change
@@ -69,84 +69,149 @@ docs/UserNotificationCreateRequest.md
6969
docs/UserRequest.md
7070
docs/UsersApi.md
7171
git_push.sh
72-
mosquito_alert_api/__init__.py
73-
mosquito_alert_api/api/__init__.py
74-
mosquito_alert_api/api/bites_api.py
75-
mosquito_alert_api/api/breeding_sites_api.py
76-
mosquito_alert_api/api/campaigns_api.py
77-
mosquito_alert_api/api/countries_api.py
78-
mosquito_alert_api/api/fixes_api.py
79-
mosquito_alert_api/api/notifications_api.py
80-
mosquito_alert_api/api/observations_api.py
81-
mosquito_alert_api/api/partners_api.py
82-
mosquito_alert_api/api/photos_api.py
83-
mosquito_alert_api/api/token_api.py
84-
mosquito_alert_api/api/users_api.py
85-
mosquito_alert_api/api_client.py
86-
mosquito_alert_api/api_response.py
87-
mosquito_alert_api/configuration.py
88-
mosquito_alert_api/exceptions.py
89-
mosquito_alert_api/models/__init__.py
90-
mosquito_alert_api/models/app_user_token_obtain_pair.py
91-
mosquito_alert_api/models/app_user_token_obtain_pair_request.py
92-
mosquito_alert_api/models/base_notification_create.py
93-
mosquito_alert_api/models/bite.py
94-
mosquito_alert_api/models/bite_request.py
95-
mosquito_alert_api/models/bounding_box.py
96-
mosquito_alert_api/models/bounding_box_request.py
97-
mosquito_alert_api/models/breeding_site.py
98-
mosquito_alert_api/models/breeding_site_request.py
99-
mosquito_alert_api/models/campaign.py
100-
mosquito_alert_api/models/country.py
101-
mosquito_alert_api/models/create_user.py
102-
mosquito_alert_api/models/create_user_request.py
103-
mosquito_alert_api/models/detail_notification.py
104-
mosquito_alert_api/models/detail_notification_request.py
105-
mosquito_alert_api/models/device.py
106-
mosquito_alert_api/models/device_request.py
107-
mosquito_alert_api/models/fix.py
108-
mosquito_alert_api/models/fix_location.py
109-
mosquito_alert_api/models/fix_location_request.py
110-
mosquito_alert_api/models/fix_request.py
111-
mosquito_alert_api/models/meta_notification_request.py
112-
mosquito_alert_api/models/observation.py
113-
mosquito_alert_api/models/observation_prediction.py
114-
mosquito_alert_api/models/observation_prediction_request.py
115-
mosquito_alert_api/models/observation_request.py
116-
mosquito_alert_api/models/package.py
117-
mosquito_alert_api/models/package_request.py
118-
mosquito_alert_api/models/paginated_bite_list.py
119-
mosquito_alert_api/models/paginated_breeding_site_list.py
120-
mosquito_alert_api/models/paginated_campaign_list.py
121-
mosquito_alert_api/models/paginated_detail_notification_list.py
122-
mosquito_alert_api/models/paginated_observation_list.py
123-
mosquito_alert_api/models/paginated_partner_list.py
124-
mosquito_alert_api/models/partner.py
125-
mosquito_alert_api/models/partner_point.py
126-
mosquito_alert_api/models/patched_detail_notification_request.py
127-
mosquito_alert_api/models/patched_user_request.py
128-
mosquito_alert_api/models/photo.py
129-
mosquito_alert_api/models/photo_prediction.py
130-
mosquito_alert_api/models/photo_prediction_request.py
131-
mosquito_alert_api/models/prediction_score.py
132-
mosquito_alert_api/models/prediction_score_request.py
133-
mosquito_alert_api/models/report_location.py
134-
mosquito_alert_api/models/report_location_point.py
135-
mosquito_alert_api/models/report_location_request.py
136-
mosquito_alert_api/models/report_photo.py
137-
mosquito_alert_api/models/report_photo_request.py
138-
mosquito_alert_api/models/token_refresh.py
139-
mosquito_alert_api/models/token_refresh_request.py
140-
mosquito_alert_api/models/topic_notification_create_request.py
141-
mosquito_alert_api/models/user.py
142-
mosquito_alert_api/models/user_notification_create_request.py
143-
mosquito_alert_api/models/user_request.py
144-
mosquito_alert_api/py.typed
145-
mosquito_alert_api/rest.py
72+
mosquito_alert/__init__.py
73+
mosquito_alert/api/__init__.py
74+
mosquito_alert/api/bites_api.py
75+
mosquito_alert/api/breeding_sites_api.py
76+
mosquito_alert/api/campaigns_api.py
77+
mosquito_alert/api/countries_api.py
78+
mosquito_alert/api/fixes_api.py
79+
mosquito_alert/api/notifications_api.py
80+
mosquito_alert/api/observations_api.py
81+
mosquito_alert/api/partners_api.py
82+
mosquito_alert/api/photos_api.py
83+
mosquito_alert/api/token_api.py
84+
mosquito_alert/api/users_api.py
85+
mosquito_alert/api_client.py
86+
mosquito_alert/api_response.py
87+
mosquito_alert/configuration.py
88+
mosquito_alert/exceptions.py
89+
mosquito_alert/models/__init__.py
90+
mosquito_alert/models/app_user_token_obtain_pair.py
91+
mosquito_alert/models/app_user_token_obtain_pair_request.py
92+
mosquito_alert/models/base_notification_create.py
93+
mosquito_alert/models/bite.py
94+
mosquito_alert/models/bite_request.py
95+
mosquito_alert/models/bounding_box.py
96+
mosquito_alert/models/bounding_box_request.py
97+
mosquito_alert/models/breeding_site.py
98+
mosquito_alert/models/breeding_site_request.py
99+
mosquito_alert/models/campaign.py
100+
mosquito_alert/models/country.py
101+
mosquito_alert/models/create_user.py
102+
mosquito_alert/models/create_user_request.py
103+
mosquito_alert/models/detail_notification.py
104+
mosquito_alert/models/detail_notification_request.py
105+
mosquito_alert/models/device.py
106+
mosquito_alert/models/device_request.py
107+
mosquito_alert/models/fix.py
108+
mosquito_alert/models/fix_location.py
109+
mosquito_alert/models/fix_location_request.py
110+
mosquito_alert/models/fix_request.py
111+
mosquito_alert/models/meta_notification_request.py
112+
mosquito_alert/models/observation.py
113+
mosquito_alert/models/observation_prediction.py
114+
mosquito_alert/models/observation_prediction_request.py
115+
mosquito_alert/models/observation_request.py
116+
mosquito_alert/models/package.py
117+
mosquito_alert/models/package_request.py
118+
mosquito_alert/models/paginated_bite_list.py
119+
mosquito_alert/models/paginated_breeding_site_list.py
120+
mosquito_alert/models/paginated_campaign_list.py
121+
mosquito_alert/models/paginated_detail_notification_list.py
122+
mosquito_alert/models/paginated_observation_list.py
123+
mosquito_alert/models/paginated_partner_list.py
124+
mosquito_alert/models/partner.py
125+
mosquito_alert/models/partner_point.py
126+
mosquito_alert/models/patched_detail_notification_request.py
127+
mosquito_alert/models/patched_user_request.py
128+
mosquito_alert/models/photo.py
129+
mosquito_alert/models/photo_prediction.py
130+
mosquito_alert/models/photo_prediction_request.py
131+
mosquito_alert/models/prediction_score.py
132+
mosquito_alert/models/prediction_score_request.py
133+
mosquito_alert/models/report_location.py
134+
mosquito_alert/models/report_location_point.py
135+
mosquito_alert/models/report_location_request.py
136+
mosquito_alert/models/report_photo.py
137+
mosquito_alert/models/report_photo_request.py
138+
mosquito_alert/models/token_refresh.py
139+
mosquito_alert/models/token_refresh_request.py
140+
mosquito_alert/models/topic_notification_create_request.py
141+
mosquito_alert/models/user.py
142+
mosquito_alert/models/user_notification_create_request.py
143+
mosquito_alert/models/user_request.py
144+
mosquito_alert/py.typed
145+
mosquito_alert/rest.py
146146
pyproject.toml
147147
requirements.txt
148148
setup.cfg
149149
setup.py
150150
test-requirements.txt
151151
test/__init__.py
152+
test/test_app_user_token_obtain_pair.py
153+
test/test_app_user_token_obtain_pair_request.py
154+
test/test_base_notification_create.py
155+
test/test_bite.py
156+
test/test_bite_request.py
157+
test/test_bites_api.py
158+
test/test_bounding_box.py
159+
test/test_bounding_box_request.py
160+
test/test_breeding_site.py
161+
test/test_breeding_site_request.py
162+
test/test_breeding_sites_api.py
163+
test/test_campaign.py
164+
test/test_campaigns_api.py
165+
test/test_countries_api.py
166+
test/test_country.py
167+
test/test_create_user.py
168+
test/test_create_user_request.py
169+
test/test_detail_notification.py
170+
test/test_detail_notification_request.py
171+
test/test_device.py
172+
test/test_device_request.py
173+
test/test_fix.py
174+
test/test_fix_location.py
175+
test/test_fix_location_request.py
176+
test/test_fix_request.py
177+
test/test_fixes_api.py
178+
test/test_meta_notification_request.py
179+
test/test_notifications_api.py
180+
test/test_observation.py
181+
test/test_observation_prediction.py
182+
test/test_observation_prediction_request.py
183+
test/test_observation_request.py
184+
test/test_observations_api.py
185+
test/test_package.py
186+
test/test_package_request.py
187+
test/test_paginated_bite_list.py
188+
test/test_paginated_breeding_site_list.py
189+
test/test_paginated_campaign_list.py
190+
test/test_paginated_detail_notification_list.py
191+
test/test_paginated_observation_list.py
192+
test/test_paginated_partner_list.py
193+
test/test_partner.py
194+
test/test_partner_point.py
195+
test/test_partners_api.py
196+
test/test_patched_detail_notification_request.py
197+
test/test_patched_user_request.py
198+
test/test_photo.py
199+
test/test_photo_prediction.py
200+
test/test_photo_prediction_request.py
201+
test/test_photos_api.py
202+
test/test_prediction_score.py
203+
test/test_prediction_score_request.py
204+
test/test_report_location.py
205+
test/test_report_location_point.py
206+
test/test_report_location_request.py
207+
test/test_report_photo.py
208+
test/test_report_photo_request.py
209+
test/test_token_api.py
210+
test/test_token_refresh.py
211+
test/test_token_refresh_request.py
212+
test/test_topic_notification_create_request.py
213+
test/test_user.py
214+
test/test_user_notification_create_request.py
215+
test/test_user_request.py
216+
test/test_users_api.py
152217
tox.ini

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ install:
1414
- "pip install -r requirements.txt"
1515
- "pip install -r test-requirements.txt"
1616
# command to run tests
17-
script: pytest --cov=mosquito_alert_api
17+
script: pytest --cov=mosquito_alert

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# mosquito-alert-api
1+
# mosquito-alert
22
Introducing API v1 for Mosquito Alert platform, a project desgined to facilitate citizen science initiatives and enable collaboration among scientists, public health officials, and environmental managers in the investigation and control of disease-carrying mosquitoes.
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
@@ -18,13 +18,13 @@ Python 3.7+
1818
If the python package is hosted on a repository, you can install directly using:
1919

2020
```sh
21-
pip install git+https://github.com/Mosquito_Alert/mosquito_alert_python_client.git
21+
pip install git+https://github.com/Mosquito_Alert/mosquito-alert-python-sdk.git
2222
```
23-
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/Mosquito_Alert/mosquito_alert_python_client.git`)
23+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/Mosquito_Alert/mosquito-alert-python-sdk.git`)
2424

2525
Then import the package:
2626
```python
27-
import mosquito_alert_api
27+
import mosquito_alert
2828
```
2929

3030
### Setuptools
@@ -38,7 +38,7 @@ python setup.py install --user
3838

3939
Then import the package:
4040
```python
41-
import mosquito_alert_api
41+
import mosquito_alert
4242
```
4343

4444
### Tests
@@ -51,13 +51,13 @@ Please follow the [installation procedure](#installation--usage) and then run th
5151

5252
```python
5353

54-
import mosquito_alert_api
55-
from mosquito_alert_api.rest import ApiException
54+
import mosquito_alert
55+
from mosquito_alert.rest import ApiException
5656
from pprint import pprint
5757

5858
# Defining the host is optional and defaults to https://api.mosquitoalert.com/v1
5959
# See configuration.py for a list of all supported configuration parameters.
60-
configuration = mosquito_alert_api.Configuration(
60+
configuration = mosquito_alert.Configuration(
6161
host = "https://api.mosquitoalert.com/v1"
6262
)
6363

@@ -79,16 +79,16 @@ configuration.api_key['tokenAuth'] = os.environ["API_KEY"]
7979
# configuration.api_key_prefix['tokenAuth'] = 'Bearer'
8080

8181
# Configure Bearer authorization (JWT): jwtAuth
82-
configuration = mosquito_alert_api.Configuration(
82+
configuration = mosquito_alert.Configuration(
8383
access_token = os.environ["BEARER_TOKEN"]
8484
)
8585

8686

8787
# Enter a context with an instance of the API client
88-
with mosquito_alert_api.ApiClient(configuration) as api_client:
88+
with mosquito_alert.ApiClient(configuration) as api_client:
8989
# Create an instance of the API class
90-
api_instance = mosquito_alert_api.BitesApi(api_client)
91-
bite_request = mosquito_alert_api.BiteRequest() # BiteRequest |
90+
api_instance = mosquito_alert.BitesApi(api_client)
91+
bite_request = mosquito_alert.BiteRequest() # BiteRequest |
9292

9393
try:
9494
api_response = api_instance.bites_create(bite_request)

docs/AppUserTokenObtainPair.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
## Example
1212

1313
```python
14-
from mosquito_alert_api.models.app_user_token_obtain_pair import AppUserTokenObtainPair
14+
from mosquito_alert.models.app_user_token_obtain_pair import AppUserTokenObtainPair
1515

1616
# TODO update the JSON string below
1717
json = "{}"

docs/AppUserTokenObtainPairRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
## Example
1212

1313
```python
14-
from mosquito_alert_api.models.app_user_token_obtain_pair_request import AppUserTokenObtainPairRequest
14+
from mosquito_alert.models.app_user_token_obtain_pair_request import AppUserTokenObtainPairRequest
1515

1616
# TODO update the JSON string below
1717
json = "{}"

docs/BaseNotificationCreate.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
## Example
1212

1313
```python
14-
from mosquito_alert_api.models.base_notification_create import BaseNotificationCreate
14+
from mosquito_alert.models.base_notification_create import BaseNotificationCreate
1515

1616
# TODO update the JSON string below
1717
json = "{}"

docs/Bite.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Name | Type | Description | Notes
3030
## Example
3131

3232
```python
33-
from mosquito_alert_api.models.bite import Bite
33+
from mosquito_alert.models.bite import Bite
3434

3535
# TODO update the JSON string below
3636
json = "{}"

docs/BiteRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
2424
## Example
2525

2626
```python
27-
from mosquito_alert_api.models.bite_request import BiteRequest
27+
from mosquito_alert.models.bite_request import BiteRequest
2828

2929
# TODO update the JSON string below
3030
json = "{}"

0 commit comments

Comments
 (0)