pycalendar-api 0.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pycalendar_api-0.0.7/.gitignore +56 -0
- pycalendar_api-0.0.7/.gitlab-ci.yml +82 -0
- pycalendar_api-0.0.7/LICENSE +674 -0
- pycalendar_api-0.0.7/PKG-INFO +153 -0
- pycalendar_api-0.0.7/README.md +99 -0
- pycalendar_api-0.0.7/docs/assets/img/favicon.ico +0 -0
- pycalendar_api-0.0.7/docs/assets/img/logo-notext.webp +0 -0
- pycalendar_api-0.0.7/docs/assets/img/logo.svg +94 -0
- pycalendar_api-0.0.7/docs/assets/img/logo.webp +0 -0
- pycalendar_api-0.0.7/docs/index.md +38 -0
- pycalendar_api-0.0.7/mkdocs.yml +103 -0
- pycalendar_api-0.0.7/pycalendar-api.sublime-project +139 -0
- pycalendar_api-0.0.7/pycalendar_api/__init__.py +21 -0
- pycalendar_api-0.0.7/pycalendar_api/__version__.py +34 -0
- pycalendar_api-0.0.7/pycalendar_api/api.py +62 -0
- pycalendar_api-0.0.7/pycalendar_api/config/__init__.py +7 -0
- pycalendar_api-0.0.7/pycalendar_api/config/base.py +81 -0
- pycalendar_api-0.0.7/pycalendar_api/config/constants.py +40 -0
- pycalendar_api-0.0.7/pycalendar_api/config/exceptions.py +2 -0
- pycalendar_api-0.0.7/pycalendar_api/config/loader.py +67 -0
- pycalendar_api-0.0.7/pycalendar_api/config/settings.py +77 -0
- pycalendar_api-0.0.7/pycalendar_api/config/utils.py +69 -0
- pycalendar_api-0.0.7/pycalendar_api/domains/__init__.py +0 -0
- pycalendar_api-0.0.7/pycalendar_api/domains/base.py +120 -0
- pycalendar_api-0.0.7/pycalendar_api/domains/bdays.py +149 -0
- pycalendar_api-0.0.7/pycalendar_api/domains/health.py +27 -0
- pycalendar_api-0.0.7/pycalendar_api/domains/holidays.py +80 -0
- pycalendar_api-0.0.7/pycalendar_api/domains/urls.py +18 -0
- pycalendar_api-0.0.7/pycalendar_api/exceptions.py +27 -0
- pycalendar_api-0.0.7/pycalendar_api/models/__init__.py +4 -0
- pycalendar_api-0.0.7/pycalendar_api/models/bdays.py +93 -0
- pycalendar_api-0.0.7/pycalendar_api/models/health.py +18 -0
- pycalendar_api-0.0.7/pycalendar_api/models/holidays.py +50 -0
- pycalendar_api-0.0.7/pycalendar_api/models/series.py +50 -0
- pycalendar_api-0.0.7/pycalendar_api/properties.py +103 -0
- pycalendar_api-0.0.7/pycalendar_api/utils/__init__.py +12 -0
- pycalendar_api-0.0.7/pycalendar_api/utils/app_utils.py +167 -0
- pycalendar_api-0.0.7/pycalendar_api/utils/http_client.py +75 -0
- pycalendar_api-0.0.7/pycalendar_api/utils/openapi.py +33 -0
- pycalendar_api-0.0.7/pycalendar_api.egg-info/PKG-INFO +153 -0
- pycalendar_api-0.0.7/pycalendar_api.egg-info/SOURCES.txt +44 -0
- pycalendar_api-0.0.7/pycalendar_api.egg-info/dependency_links.txt +1 -0
- pycalendar_api-0.0.7/pycalendar_api.egg-info/requires.txt +25 -0
- pycalendar_api-0.0.7/pycalendar_api.egg-info/top_level.txt +1 -0
- pycalendar_api-0.0.7/pyproject.toml +98 -0
- pycalendar_api-0.0.7/setup.cfg +4 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Distribution / packaging
|
|
2
|
+
bin/
|
|
3
|
+
build/
|
|
4
|
+
develop-eggs/
|
|
5
|
+
dist/
|
|
6
|
+
eggs/
|
|
7
|
+
lib64/
|
|
8
|
+
parts/
|
|
9
|
+
sdist/
|
|
10
|
+
var/
|
|
11
|
+
*.egg
|
|
12
|
+
# Python egg-files
|
|
13
|
+
*.egg-info/
|
|
14
|
+
calendar_api/__version__.py
|
|
15
|
+
|
|
16
|
+
# Files
|
|
17
|
+
*.db
|
|
18
|
+
*.pyc
|
|
19
|
+
*.sqlite
|
|
20
|
+
*.sqlite3
|
|
21
|
+
# *.sublime-project
|
|
22
|
+
|
|
23
|
+
*.sublime-workspace
|
|
24
|
+
*.vscode
|
|
25
|
+
*.zip
|
|
26
|
+
|
|
27
|
+
# Folders
|
|
28
|
+
.idea/
|
|
29
|
+
site/
|
|
30
|
+
|
|
31
|
+
# Compiled Python bytecode
|
|
32
|
+
*.py[cod]
|
|
33
|
+
|
|
34
|
+
__pycache__/
|
|
35
|
+
|
|
36
|
+
# Log files
|
|
37
|
+
*.log
|
|
38
|
+
|
|
39
|
+
# Generated by MacOS
|
|
40
|
+
.DS_Store
|
|
41
|
+
|
|
42
|
+
# Generated by Windows
|
|
43
|
+
Thumbs.db
|
|
44
|
+
|
|
45
|
+
# Applications
|
|
46
|
+
*.app
|
|
47
|
+
*.exe
|
|
48
|
+
*.war
|
|
49
|
+
|
|
50
|
+
# Large media files
|
|
51
|
+
*.mp4
|
|
52
|
+
*.tiff
|
|
53
|
+
*.avi
|
|
54
|
+
*.flv
|
|
55
|
+
*.mov
|
|
56
|
+
*.wmv
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
image: python:3.12-slim-bullseye
|
|
2
|
+
default:
|
|
3
|
+
tags:
|
|
4
|
+
- saas-linux-medium-amd64
|
|
5
|
+
|
|
6
|
+
workflow:
|
|
7
|
+
rules:
|
|
8
|
+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
9
|
+
- if: $CI_COMMIT_TAG
|
|
10
|
+
- if: $CI_COMMIT_BRANCH == "ci"
|
|
11
|
+
|
|
12
|
+
stages:
|
|
13
|
+
- build
|
|
14
|
+
- publish
|
|
15
|
+
|
|
16
|
+
variables:
|
|
17
|
+
SECRET_DETECTION_ENABLED: 'true'
|
|
18
|
+
|
|
19
|
+
include:
|
|
20
|
+
- template: Security/Secret-Detection.gitlab-ci.yml
|
|
21
|
+
|
|
22
|
+
secret_detection:
|
|
23
|
+
stage: build
|
|
24
|
+
|
|
25
|
+
# ====== Build ========
|
|
26
|
+
build-job:
|
|
27
|
+
stage: build
|
|
28
|
+
script:
|
|
29
|
+
- apt-get update && apt-get install -y --no-install-recommends git
|
|
30
|
+
- pip install --upgrade pip
|
|
31
|
+
- pip install build
|
|
32
|
+
- python -m build
|
|
33
|
+
artifacts:
|
|
34
|
+
paths:
|
|
35
|
+
- dist
|
|
36
|
+
only:
|
|
37
|
+
- tags
|
|
38
|
+
|
|
39
|
+
# ====== Gitlab ========
|
|
40
|
+
publish-gitlab:
|
|
41
|
+
stage: publish
|
|
42
|
+
dependencies:
|
|
43
|
+
- build-job
|
|
44
|
+
variables:
|
|
45
|
+
TWINE_USERNAME: gitlab-ci-token
|
|
46
|
+
TWINE_PASSWORD: $CI_JOB_TOKEN
|
|
47
|
+
script:
|
|
48
|
+
- pip install twine
|
|
49
|
+
- twine upload --verbose --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
|
|
50
|
+
only:
|
|
51
|
+
- tags
|
|
52
|
+
|
|
53
|
+
# ====== PYPI ========
|
|
54
|
+
publish-pypi:
|
|
55
|
+
stage: publish
|
|
56
|
+
environment:
|
|
57
|
+
name: pypi
|
|
58
|
+
dependencies:
|
|
59
|
+
- build-job
|
|
60
|
+
id_tokens:
|
|
61
|
+
PYPI_ID_TOKEN:
|
|
62
|
+
aud: pypi
|
|
63
|
+
script:
|
|
64
|
+
- pip install twine
|
|
65
|
+
- twine upload --verbose dist/*
|
|
66
|
+
only:
|
|
67
|
+
- tags
|
|
68
|
+
|
|
69
|
+
# ====== Pages/Docs ========
|
|
70
|
+
pages:
|
|
71
|
+
stage: publish
|
|
72
|
+
script:
|
|
73
|
+
- apt-get update && apt-get install -y --no-install-recommends git
|
|
74
|
+
- pip install --upgrade pip
|
|
75
|
+
- pip install -e .[dev]
|
|
76
|
+
- mkdocs build --strict --verbose --site-dir public
|
|
77
|
+
artifacts:
|
|
78
|
+
paths:
|
|
79
|
+
- public
|
|
80
|
+
rules:
|
|
81
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # main/master branch
|
|
82
|
+
- if: $CI_COMMIT_TAG
|