propelauth-fastapi 4.3.2__tar.gz → 4.4.0__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.
Files changed (24) hide show
  1. propelauth_fastapi-4.4.0/.github/workflows/publish.yml +40 -0
  2. propelauth_fastapi-4.4.0/.github/workflows/test.yml +13 -0
  3. propelauth_fastapi-4.4.0/.gitignore +395 -0
  4. propelauth_fastapi-4.4.0/.python-version +1 -0
  5. {propelauth_fastapi-4.3.2 → propelauth_fastapi-4.4.0}/PKG-INFO +8 -16
  6. {propelauth_fastapi-4.3.2 → propelauth_fastapi-4.4.0}/propelauth_fastapi/__init__.py +354 -12
  7. propelauth_fastapi-4.4.0/pyproject.toml +33 -0
  8. propelauth_fastapi-4.4.0/tests/__init__.py +0 -0
  9. propelauth_fastapi-4.4.0/tests/auth_helpers.py +40 -0
  10. propelauth_fastapi-4.4.0/tests/conftest.py +92 -0
  11. propelauth_fastapi-4.4.0/uv.lock +943 -0
  12. propelauth_fastapi-4.3.2/propelauth_fastapi.egg-info/PKG-INFO +0 -170
  13. propelauth_fastapi-4.3.2/propelauth_fastapi.egg-info/SOURCES.txt +0 -13
  14. propelauth_fastapi-4.3.2/propelauth_fastapi.egg-info/dependency_links.txt +0 -1
  15. propelauth_fastapi-4.3.2/propelauth_fastapi.egg-info/requires.txt +0 -3
  16. propelauth_fastapi-4.3.2/propelauth_fastapi.egg-info/top_level.txt +0 -1
  17. propelauth_fastapi-4.3.2/setup.cfg +0 -4
  18. propelauth_fastapi-4.3.2/setup.py +0 -28
  19. {propelauth_fastapi-4.3.2 → propelauth_fastapi-4.4.0}/LICENSE +0 -0
  20. {propelauth_fastapi-4.3.2 → propelauth_fastapi-4.4.0}/README.md +0 -0
  21. {propelauth_fastapi-4.3.2 → propelauth_fastapi-4.4.0}/tests/test_init_auth.py +0 -0
  22. {propelauth_fastapi-4.3.2 → propelauth_fastapi-4.4.0}/tests/test_optional_user.py +0 -0
  23. {propelauth_fastapi-4.3.2 → propelauth_fastapi-4.4.0}/tests/test_require_org_member.py +0 -0
  24. {propelauth_fastapi-4.3.2 → propelauth_fastapi-4.4.0}/tests/test_require_user.py +0 -0
@@ -0,0 +1,40 @@
1
+ name: Publish
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ name: Build distribution
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ steps:
14
+ - uses: actions/checkout@v6.0.0
15
+ - uses: astral-sh/setup-uv@v8.1.0
16
+ with:
17
+ enable-cache: true
18
+ - run: uv sync --frozen
19
+ - run: uv run pytest
20
+ - run: uv build
21
+ - uses: actions/upload-artifact@v7.0.1
22
+ with:
23
+ name: python-package-distributions
24
+ path: dist/
25
+ if-no-files-found: error
26
+
27
+ publish:
28
+ name: Publish to PyPI
29
+ needs: build
30
+ runs-on: ubuntu-latest
31
+ environment:
32
+ name: pypi
33
+ permissions:
34
+ id-token: write
35
+ steps:
36
+ - uses: actions/download-artifact@v8.0.1
37
+ with:
38
+ name: python-package-distributions
39
+ path: dist/
40
+ - uses: pypa/gh-action-pypi-publish@v1.14.0
@@ -0,0 +1,13 @@
1
+ name: Test
2
+ on: push
3
+ jobs:
4
+ build-n-test:
5
+ name: Build and test
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v6.0.0
9
+ - uses: astral-sh/setup-uv@v8.1.0
10
+ with:
11
+ enable-cache: true
12
+ - run: uv sync --frozen
13
+ - run: uv run pytest
@@ -0,0 +1,395 @@
1
+
2
+ # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,python,venv,virtualenv,pycharm+all,vim,emacs,macos,windows
3
+ # Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,python,venv,virtualenv,pycharm+all,vim,emacs,macos,windows
4
+
5
+ ### Emacs ###
6
+ # -*- mode: gitignore; -*-
7
+ *~
8
+ \#*\#
9
+ /.emacs.desktop
10
+ /.emacs.desktop.lock
11
+ *.elc
12
+ auto-save-list
13
+ tramp
14
+ .\#*
15
+
16
+ # Org-mode
17
+ .org-id-locations
18
+ *_archive
19
+
20
+ # flymake-mode
21
+ *_flymake.*
22
+
23
+ # eshell files
24
+ /eshell/history
25
+ /eshell/lastdir
26
+
27
+ # elpa packages
28
+ /elpa/
29
+
30
+ # reftex files
31
+ *.rel
32
+
33
+ # AUCTeX auto folder
34
+ /auto/
35
+
36
+ # cask packages
37
+ .cask/
38
+ dist/
39
+
40
+ # Flycheck
41
+ flycheck_*.el
42
+
43
+ # server auth directory
44
+ /server/
45
+
46
+ # projectiles files
47
+ .projectile
48
+
49
+ # directory configuration
50
+ .dir-locals.el
51
+
52
+ # network security
53
+ /network-security.data
54
+
55
+
56
+ ### macOS ###
57
+ # General
58
+ .DS_Store
59
+ .AppleDouble
60
+ .LSOverride
61
+
62
+ # Icon must end with two \r
63
+ Icon
64
+
65
+
66
+ # Thumbnails
67
+ ._*
68
+
69
+ # Files that might appear in the root of a volume
70
+ .DocumentRevisions-V100
71
+ .fseventsd
72
+ .Spotlight-V100
73
+ .TemporaryItems
74
+ .Trashes
75
+ .VolumeIcon.icns
76
+ .com.apple.timemachine.donotpresent
77
+
78
+ # Directories potentially created on remote AFP share
79
+ .AppleDB
80
+ .AppleDesktop
81
+ Network Trash Folder
82
+ Temporary Items
83
+ .apdisk
84
+
85
+ ### PyCharm+all ###
86
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
87
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
88
+
89
+ # User-specific stuff
90
+ .idea/**/workspace.xml
91
+ .idea/**/tasks.xml
92
+ .idea/**/usage.statistics.xml
93
+ .idea/**/dictionaries
94
+ .idea/**/shelf
95
+
96
+ # AWS User-specific
97
+ .idea/**/aws.xml
98
+
99
+ # Generated files
100
+ .idea/**/contentModel.xml
101
+
102
+ # Sensitive or high-churn files
103
+ .idea/**/dataSources/
104
+ .idea/**/dataSources.ids
105
+ .idea/**/dataSources.local.xml
106
+ .idea/**/sqlDataSources.xml
107
+ .idea/**/dynamic.xml
108
+ .idea/**/uiDesigner.xml
109
+ .idea/**/dbnavigator.xml
110
+
111
+ # Gradle
112
+ .idea/**/gradle.xml
113
+ .idea/**/libraries
114
+
115
+ # Gradle and Maven with auto-import
116
+ # When using Gradle or Maven with auto-import, you should exclude module files,
117
+ # since they will be recreated, and may cause churn. Uncomment if using
118
+ # auto-import.
119
+ # .idea/artifacts
120
+ # .idea/compiler.xml
121
+ # .idea/jarRepositories.xml
122
+ # .idea/modules.xml
123
+ # .idea/*.iml
124
+ # .idea/modules
125
+ # *.iml
126
+ # *.ipr
127
+
128
+ # CMake
129
+ cmake-build-*/
130
+
131
+ # Mongo Explorer plugin
132
+ .idea/**/mongoSettings.xml
133
+
134
+ # File-based project format
135
+ *.iws
136
+
137
+ # IntelliJ
138
+ out/
139
+
140
+ # mpeltonen/sbt-idea plugin
141
+ .idea_modules/
142
+
143
+ # JIRA plugin
144
+ atlassian-ide-plugin.xml
145
+
146
+ # Cursive Clojure plugin
147
+ .idea/replstate.xml
148
+
149
+ # Crashlytics plugin (for Android Studio and IntelliJ)
150
+ com_crashlytics_export_strings.xml
151
+ crashlytics.properties
152
+ crashlytics-build.properties
153
+ fabric.properties
154
+
155
+ # Editor-based Rest Client
156
+ .idea/httpRequests
157
+
158
+ # Android studio 3.1+ serialized cache file
159
+ .idea/caches/build_file_checksums.ser
160
+
161
+ ### PyCharm+all Patch ###
162
+ # Ignores the whole .idea folder and all .iml files
163
+ # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
164
+
165
+ .idea/
166
+
167
+ # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
168
+
169
+ *.iml
170
+ modules.xml
171
+ .idea/misc.xml
172
+ *.ipr
173
+
174
+ # Sonarlint plugin
175
+ .idea/sonarlint
176
+
177
+ ### Python ###
178
+ # Byte-compiled / optimized / DLL files
179
+ __pycache__/
180
+ *.py[cod]
181
+ *$py.class
182
+
183
+ # C extensions
184
+ *.so
185
+
186
+ # Distribution / packaging
187
+ .Python
188
+ build/
189
+ develop-eggs/
190
+ downloads/
191
+ eggs/
192
+ .eggs/
193
+ lib/
194
+ lib64/
195
+ parts/
196
+ sdist/
197
+ var/
198
+ wheels/
199
+ share/python-wheels/
200
+ *.egg-info/
201
+ .installed.cfg
202
+ *.egg
203
+ MANIFEST
204
+
205
+ # PyInstaller
206
+ # Usually these files are written by a python script from a template
207
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
208
+ *.manifest
209
+ *.spec
210
+
211
+ # Installer logs
212
+ pip-log.txt
213
+ pip-delete-this-directory.txt
214
+
215
+ # Unit test / coverage reports
216
+ htmlcov/
217
+ .tox/
218
+ .nox/
219
+ .coverage
220
+ .coverage.*
221
+ .cache
222
+ nosetests.xml
223
+ coverage.xml
224
+ *.cover
225
+ *.py,cover
226
+ .hypothesis/
227
+ .pytest_cache/
228
+ cover/
229
+
230
+ # Translations
231
+ *.mo
232
+ *.pot
233
+
234
+ # Django stuff:
235
+ *.log
236
+ local_settings.py
237
+ db.sqlite3
238
+ db.sqlite3-journal
239
+
240
+ # Flask stuff:
241
+ instance/
242
+ .webassets-cache
243
+
244
+ # Scrapy stuff:
245
+ .scrapy
246
+
247
+ # Sphinx documentation
248
+ docs/_build/
249
+
250
+ # PyBuilder
251
+ .pybuilder/
252
+ target/
253
+
254
+ # Jupyter Notebook
255
+ .ipynb_checkpoints
256
+
257
+ # IPython
258
+ profile_default/
259
+ ipython_config.py
260
+
261
+ # pyenv
262
+ # For a library or package, you might want to ignore these files since the code is
263
+ # intended to run in multiple environments; otherwise, check them in:
264
+ # .python-version
265
+
266
+ # pipenv
267
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
268
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
269
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
270
+ # install all needed dependencies.
271
+ #Pipfile.lock
272
+
273
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
274
+ __pypackages__/
275
+
276
+ # Celery stuff
277
+ celerybeat-schedule
278
+ celerybeat.pid
279
+
280
+ # SageMath parsed files
281
+ *.sage.py
282
+
283
+ # Environments
284
+ .env
285
+ .venv
286
+ env/
287
+ venv/
288
+ ENV/
289
+ env.bak/
290
+ venv.bak/
291
+
292
+ # Spyder project settings
293
+ .spyderproject
294
+ .spyproject
295
+
296
+ # Rope project settings
297
+ .ropeproject
298
+
299
+ # mkdocs documentation
300
+ /site
301
+
302
+ # mypy
303
+ .mypy_cache/
304
+ .dmypy.json
305
+ dmypy.json
306
+
307
+ # Pyre type checker
308
+ .pyre/
309
+
310
+ # pytype static type analyzer
311
+ .pytype/
312
+
313
+ # Cython debug symbols
314
+ cython_debug/
315
+
316
+ ### venv ###
317
+ # Virtualenv
318
+ # http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
319
+ [Bb]in
320
+ [Ii]nclude
321
+ [Ll]ib
322
+ [Ll]ib64
323
+ [Ll]ocal
324
+ [Ss]cripts
325
+ pyvenv.cfg
326
+ pip-selfcheck.json
327
+
328
+ ### Vim ###
329
+ # Swap
330
+ [._]*.s[a-v][a-z]
331
+ !*.svg # comment out if you don't need vector files
332
+ [._]*.sw[a-p]
333
+ [._]s[a-rt-v][a-z]
334
+ [._]ss[a-gi-z]
335
+ [._]sw[a-p]
336
+
337
+ # Session
338
+ Session.vim
339
+ Sessionx.vim
340
+
341
+ # Temporary
342
+ .netrwhist
343
+ # Auto-generated tag files
344
+ tags
345
+ # Persistent undo
346
+ [._]*.un~
347
+
348
+ ### VirtualEnv ###
349
+ # Virtualenv
350
+ # http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
351
+
352
+ ### VisualStudioCode ###
353
+ .vscode
354
+ .vscode/*
355
+ !.vscode/settings.json
356
+ !.vscode/tasks.json
357
+ !.vscode/launch.json
358
+ !.vscode/extensions.json
359
+ *.code-workspace
360
+
361
+ # Local History for Visual Studio Code
362
+ .history/
363
+
364
+ ### VisualStudioCode Patch ###
365
+ # Ignore all local history of files
366
+ .history
367
+ .ionide
368
+
369
+ ### Windows ###
370
+ # Windows thumbnail cache files
371
+ Thumbs.db
372
+ Thumbs.db:encryptable
373
+ ehthumbs.db
374
+ ehthumbs_vista.db
375
+
376
+ # Dump file
377
+ *.stackdump
378
+
379
+ # Folder config file
380
+ [Dd]esktop.ini
381
+
382
+ # Recycle Bin used on file shares
383
+ $RECYCLE.BIN/
384
+
385
+ # Windows Installer files
386
+ *.cab
387
+ *.msi
388
+ *.msix
389
+ *.msm
390
+ *.msp
391
+
392
+ # Windows shortcuts
393
+ *.lnk
394
+
395
+ # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,python,venv,virtualenv,pycharm+all,vim,emacs,macos,windows
@@ -0,0 +1 @@
1
+ 3.12
@@ -1,25 +1,17 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: propelauth-fastapi
3
- Version: 4.3.2
3
+ Version: 4.4.0
4
4
  Summary: A FastAPI library for managing authentication, backed by PropelAuth
5
- Home-page: https://github.com/propelauth/propelauth-fastapi
6
- Author: PropelAuth
7
- Author-email: support@propelauth.com
5
+ Project-URL: Homepage, https://github.com/propelauth/propelauth-fastapi
6
+ Author-email: PropelAuth <support@propelauth.com>
8
7
  License: MIT
9
- Description-Content-Type: text/markdown
10
8
  License-File: LICENSE
11
- Requires-Dist: propelauth-py==4.3.2
12
- Requires-Dist: requests
9
+ Requires-Python: >=3.9
10
+ Requires-Dist: fastapi
13
11
  Requires-Dist: httpx>=0.28.1
14
- Dynamic: author
15
- Dynamic: author-email
16
- Dynamic: description
17
- Dynamic: description-content-type
18
- Dynamic: home-page
19
- Dynamic: license
20
- Dynamic: license-file
21
- Dynamic: requires-dist
22
- Dynamic: summary
12
+ Requires-Dist: propelauth-py==4.4.0
13
+ Requires-Dist: requests
14
+ Description-Content-Type: text/markdown
23
15
 
24
16
  <p align="center">
25
17
  <a href="https://www.propelauth.com?ref=github" target="_blank" align="center">