pax_global_header00006660000000000000000000000064146363143150014520gustar00rootroot0000000000000052 comment=217917edcab55f87a0e03fab3ca6bf51ef0a84f7 kvanzuijlen-justnimbus-217917e/000077500000000000000000000000001463631431500165425ustar00rootroot00000000000000kvanzuijlen-justnimbus-217917e/.github/000077500000000000000000000000001463631431500201025ustar00rootroot00000000000000kvanzuijlen-justnimbus-217917e/.github/CODEOWNERS000066400000000000000000000000171463631431500214730ustar00rootroot00000000000000* @kvanzuijlen kvanzuijlen-justnimbus-217917e/.github/workflows/000077500000000000000000000000001463631431500221375ustar00rootroot00000000000000kvanzuijlen-justnimbus-217917e/.github/workflows/poetry-publish.yml000066400000000000000000000020001463631431500256400ustar00rootroot00000000000000# This workflow will upload a Python Package using Twine when a release is created # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support # documentation. name: Publish to PyPi on: release: types: [published] permissions: contents: read jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v3 with: python-version: '3.x' - name: Install Poetry uses: snok/install-poetry@v1 - name: Install dependencies run: poetry install - name: Build package run: poetry build - name: Publish package run: poetry publish --username ${{ secrets.PYPI_USER }} --password ${{ secrets.PYPI_PASSWORD }} kvanzuijlen-justnimbus-217917e/.gitignore000066400000000000000000000421231463631431500205340ustar00rootroot00000000000000### MonoDevelop template #User Specific *.userprefs *.usertasks #Mono Project Files *.pidb *.resources test-results/ ### NotepadPP template # Notepad++ backups # *.bak ### VisualStudioCode template .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json *.code-workspace # Local History for Visual Studio Code .history/ ### VirtualEnv template # Virtualenv # http://iamzed.com/2009/05/07/a-primer-on-virtualenv/ .Python [Bb]in [Ii]nclude [Ll]ib [Ll]ib64 [Ll]ocal [Ss]cripts pyvenv.cfg .venv pip-selfcheck.json ### Diff template *.patch *.diff ### Eclipse template .metadata bin/ tmp/ *.tmp *.swp *~.nib local.properties .settings/ .loadpath .recommenders # External tool builders .externalToolBuilders/ # Locally stored "Eclipse launch configurations" *.launch # PyDev specific (Python IDE for Eclipse) *.pydevproject # CDT-specific (C/C++ Development Tooling) .cproject # CDT- autotools .autotools # Java annotation processor (APT) .factorypath # PDT-specific (PHP Development Tools) .buildpath # sbteclipse plugin .target # Tern plugin .tern-project # TeXlipse plugin .texlipse # STS (Spring Tool Suite) .springBeans # Code Recommenders .recommenders/ # Annotation Processing .apt_generated/ .apt_generated_test/ # Scala IDE specific (Scala & Java development for Eclipse) .cache-main .scala_dependencies .worksheet # Uncomment this line if you wish to ignore the project description file. # Typically, this file would be tracked if it contains build/dependency configurations: #.project ### EiffelStudio template # The compilation directory EIFGENs ### Dreamweaver template # DW Dreamweaver added files _notes _compareTemp configs/ dwsync.xml dw_php_codehinting.config *.mno ### PuTTY template # Private key *.ppk ### WebMethods template **/IntegrationServer/datastore/ **/IntegrationServer/db/ **/IntegrationServer/DocumentStore/ **/IntegrationServer/lib/ **/IntegrationServer/logs/ **/IntegrationServer/replicate/ **/IntegrationServer/sdk/ **/IntegrationServer/support/ **/IntegrationServer/update/ **/IntegrationServer/userFtpRoot/ **/IntegrationServer/web/ **/IntegrationServer/WmRepository4/ **/IntegrationServer/XAStore/ **/IntegrationServer/packages/Wm*/ ### MATLAB template # Windows default autosave extension *.asv # OSX / *nix default autosave extension *.m~ # Compiled MEX binaries (all platforms) *.mex* # Packaged app and toolbox files *.mlappinstall *.mltbx # Generated helpsearch folders helpsearch*/ # Simulink code generation folders slprj/ sccprj/ # Matlab code generation folders codegen/ # Simulink autosave extension *.autosave # Simulink cache files *.slxc # Octave session info octave-workspace ### Vagrant template # General .vagrant/ # Log files (if you are creating logs in debug mode, uncomment this) # *.log ### MicrosoftOffice template # Word temporary ~$*.doc* # Word Auto Backup File Backup of *.doc* # Excel temporary ~$*.xls* # Excel Backup File *.xlk # PowerPoint temporary ~$*.ppt* # Visio autosave temporary files *.~vsd* ### JetBrains template # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # User-specific stuff .idea/**/workspace.xml .idea/**/tasks.xml .idea/**/usage.statistics.xml .idea/**/dictionaries .idea/**/shelf # Generated files .idea/**/contentModel.xml # Sensitive or high-churn files .idea/**/dataSources/ .idea/**/dataSources.ids .idea/**/dataSources.local.xml .idea/**/sqlDataSources.xml .idea/**/dynamic.xml .idea/**/uiDesigner.xml .idea/**/dbnavigator.xml # Gradle .idea/**/gradle.xml .idea/**/libraries # Gradle and Maven with auto-import # When using Gradle or Maven with auto-import, you should exclude module files, # since they will be recreated, and may cause churn. Uncomment if using # auto-import. # .idea/artifacts # .idea/compiler.xml # .idea/jarRepositories.xml # .idea/modules.xml # .idea/*.iml # .idea/modules # *.iml # *.ipr # CMake cmake-build-*/ # Mongo Explorer plugin .idea/**/mongoSettings.xml # File-based project format *.iws # IntelliJ out/ # mpeltonen/sbt-idea plugin .idea_modules/ # JIRA plugin atlassian-ide-plugin.xml # Cursive Clojure plugin .idea/replstate.xml # Crashlytics plugin (for Android Studio and IntelliJ) com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties fabric.properties # Editor-based Rest Client .idea/httpRequests # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser ### DartEditor template .project .buildlog ### Ninja template .ninja_deps .ninja_log ### Archives template # It's better to unpack these files and commit the raw source because # git has its own built in compression methods. *.7z *.jar *.rar *.zip *.gz *.gzip *.tgz *.bzip *.bzip2 *.bz2 *.xz *.lzma *.cab *.xar # Packing-only formats *.iso *.tar # Package management formats *.dmg *.xpi *.gem *.egg *.deb *.rpm *.msi *.msm *.msp *.txz ### SynopsysVCS template # Waveform formats *.vcd *.vpd *.evcd *.fsdb # Default name of the simulation executable. A different name can be # specified with this switch (the associated daidir database name is # also taken from here): -o / simv # Generated for Verilog and VHDL top configs simv.daidir/ simv.db.dir/ # Infrastructure necessary to co-simulate SystemC models with # Verilog/VHDL models. An alternate directory may be specified with this # switch: -Mdir= csrc/ # Log file - the following switch allows to specify the file that will be # used to write all messages from simulation: -l *.log # Coverage results (generated with urg) and database location. The # following switch can also be used: urg -dir .vdb simv.vdb/ urgReport/ # DVE and UCLI related files. DVEfiles/ ucli.key # When the design is elaborated for DirectC, the following file is created # with declarations for C/C++ functions. vc_hdrs.h ### Tags template # Ignore tags created by etags, ctags, gtags (GNU global) and cscope TAGS .TAGS !TAGS/ tags .tags !tags/ gtags.files GTAGS GRTAGS GPATH GSYMS cscope.files cscope.out cscope.in.out cscope.po.out ### Python template # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ share/python-wheels/ *.egg-info/ .installed.cfg MANIFEST # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ cover/ # Translations *.mo *.pot # Django stuff: local_settings.py db.sqlite3 db.sqlite3-journal # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder .pybuilder/ target/ # Jupyter Notebook .ipynb_checkpoints # IPython profile_default/ ipython_config.py # pyenv # For a library or package, you might want to ignore these files since the code is # intended to run in multiple environments; otherwise, check them in: # .python-version # pipenv # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # However, in case of collaboration, if having platform-specific dependencies or dependencies # having no cross-platform support, pipenv may install dependencies that don't work, or not # install all needed dependencies. #Pipfile.lock # PEP 582; used by e.g. github.com/David-OConnor/pyflow __pypackages__/ # Celery stuff celerybeat-schedule celerybeat.pid # SageMath parsed files *.sage.py # Environments .env env/ venv/ ENV/ env.bak/ venv.bak/ # Spyder project settings .spyderproject .spyproject # Rope project settings .ropeproject # mkdocs documentation /site # mypy .mypy_cache/ .dmypy.json dmypy.json # Pyre type checker .pyre/ # pytype static type analyzer .pytype/ # Cython debug symbols cython_debug/ ### TortoiseGit template # Project-level settings /.tgitconfig ### Momentics template # Built files x86/ arm/ arm-p/ translations/*.qm # IDE settings ### Images template # JPEG *.jpg *.jpeg *.jpe *.jif *.jfif *.jfi # JPEG 2000 *.jp2 *.j2k *.jpf *.jpx *.jpm *.mj2 # JPEG XR *.jxr *.hdp *.wdp # Graphics Interchange Format *.gif # RAW *.raw # Web P *.webp # Portable Network Graphics *.png # Animated Portable Network Graphics *.apng # Multiple-image Network Graphics *.mng # Tagged Image File Format *.tiff *.tif # Scalable Vector Graphics *.svg *.svgz # Portable Document Format *.pdf # X BitMap *.xbm # BMP *.bmp *.dib # ICO *.ico # 3D Images *.3dm *.max ### Octave template # Windows default autosave extension # OSX / *nix default autosave extension # Compiled MEX binaries (all platforms) # Packaged app and toolbox files # Generated helpsearch folders # Simulink code generation folders # Matlab code generation folders # Simulink autosave extension # Simulink cache files # Octave session info ### Stata template # .gitignore file for git projects containing Stata files # Commercial statistical software: http://www.stata.com # Stata dataset and output files *.dta *.gph *.smcl *.stpr *.stsem # Graphic export files from Stata # Stata command graph export: http://www.stata.com/manuals14/g-2graphexport.pdf # # You may add graphic export files to your .gitignore. However you should be # aware that this will exclude all image files from this main directory # and subdirectories. # *.ps # *.eps # *.wmf # *.emf # *.pdf # *.png # *.tif ### KDevelop4 template *.kdev4 .kdev4/ ### SlickEdit template # SlickEdit workspace and project files are ignored by default because # typically they are considered to be developer-specific and not part of a # project. *.vpw *.vpj # SlickEdit workspace history and tag files always contain user-specific # data so they should not be stored in a repository. *.vpwhistu *.vpwhist *.vtg ### Linux template *~ # temporary files which can be created if a process still has a handle open of a deleted file .fuse_hidden* # KDE directory preferences .directory # Linux trash folder which might appear on any partition or disk .Trash-* # .nfs files are created when an open file is removed but is still being accessed .nfs* ### Ensime template # Ensime specific .ensime .ensime_cache/ .ensime_lucene/ ### Emacs template # -*- mode: gitignore; -*- \#*\# /.emacs.desktop /.emacs.desktop.lock *.elc auto-save-list tramp .\#* # Org-mode .org-id-locations *_archive # flymake-mode *_flymake.* # eshell files /eshell/history /eshell/lastdir # elpa packages /elpa/ # reftex files *.rel # AUCTeX auto folder /auto/ # cask packages .cask/ # Flycheck flycheck_*.el # server auth directory /server/ # projectiles files .projectile # directory configuration .dir-locals.el # network security /network-security.data ### XilinxISE template # intermediate build files *.bgn *.bit *.bld *.cmd_log *.drc *.ll *.lso *.msd *.msk *.ncd *.ngc *.ngd *.ngr *.pad *.par *.pcf *.prj *.ptwx *.rbb *.rbd *.stx *.syr *.twr *.twx *.unroutes *.ut *.xst *_bitgen.xwbt *_envsettings.html *_map.map *_map.mrp *_map.ngm *_map.xrpt *_ngdbuild.xrpt *_pad.csv *_pad.txt *_par.xrpt *_summary.html *_summary.xml *_usage.xml *_xst.xrpt # iMPACT generated files _impactbatch.log impact.xsl impact_impact.xwbt ise_impact.cmd webtalk_impact.xml # Core Generator generated files xaw2verilog.log # project-wide generated files *.gise par_usage_statistics.html usage_statistics_webtalk.html webtalk.log webtalk_pn.xml # generated folders iseconfig/ xlnx_auto_0_xdb/ xst/ _ngo/ _xmsgs/ ### Ansible template *.retry ### Calabash template # Calabash / Cucumber rerun/ reports/ screenshots/ screenshot*.png test-servers/ # bundler .bundle vendor ### Patch template *.orig *.rej ### Cloud9 template # Cloud9 IDE - http://c9.io .c9revisions .c9 ### CVS template /CVS/* **/CVS/* .cvsignore */.cvsignore ### Xcode template # Xcode # # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore ## User settings xcuserdata/ ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) *.xcscmblueprint *.xccheckout ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) DerivedData/ *.moved-aside *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 ## Gcc Patch /*.gcno ### Kate template # Swap Files # .*.kate-swp .swp.* ### Mercurial template .hg/ .hgignore .hgsigs .hgsub .hgsubstate .hgtags ### Metals template # Generated Metals (Scala Language Server) files # Reference: https://scalameta.org/metals/ .metals/ .bloop/ project/metals.sbt ### Backup template *.gho *.ori ### LyX template # Ignore LyX backup and autosave files # http://www.lyx.org/ *.lyx~ *.lyx# ### SVN template .svn/ ### Windows template # Windows thumbnail cache files Thumbs.db Thumbs.db:encryptable ehthumbs.db ehthumbs_vista.db # Dump file *.stackdump # Folder config file [Dd]esktop.ini # Recycle Bin used on file shares $RECYCLE.BIN/ # Windows Installer files *.msix # Windows shortcuts *.lnk ### FlexBuilder template bin-debug/ bin-release/ ### SublimeText template # Cache files for Sublime Text *.tmlanguage.cache *.tmPreferences.cache *.stTheme.cache # Workspace files are user-specific *.sublime-workspace # Project files should be checked into the repository, unless a significant # proportion of contributors will probably not be using Sublime Text # *.sublime-project # SFTP configuration file sftp-config.json sftp-config-alt*.json # Package control specific files Package Control.last-run Package Control.ca-list Package Control.ca-bundle Package Control.system-ca-bundle Package Control.cache/ Package Control.ca-certs/ Package Control.merged-ca-bundle Package Control.user-ca-bundle oscrypto-ca-bundle.crt bh_unicode_properties.cache # Sublime-github package stores a github token in this file # https://packagecontrol.io/packages/sublime-github GitHub.sublime-settings ### Lazarus template # Lazarus compiler-generated binaries (safe to delete) *.exe *.dll *.dylib *.lrs *.res *.compiled *.dbg *.ppu *.o *.or *.a # Lazarus autogenerated files (duplicated info) *.rst *.rsj *.lrt # Lazarus local files (user-specific info) *.lps # Lazarus backups and unit output folders. # These can be changed by user in Lazarus/project options. backup/ # Application bundle for Mac OS *.app/ ### CodeKit template # General CodeKit files to ignore config.codekit config.codekit3 /min ### BricxCC template # Bricx Command Center IDE # http://bricxcc.sourceforge.net *.sym ### Bazaar template .bzr/ .bzrignore ### LibreOffice template # LibreOffice locks .~lock.*# ### Dropbox template # Dropbox settings and caches .dropbox .dropbox.attr .dropbox.cache ### PSoCCreator template # Project Settings *.cywrk.* *.cyprj.* # Generated Assets and Resources Debug/ Release/ Export/ */codegentemp */Generated_Source *_datasheet.pdf *_timing.html *.cycdx *.cyfit *.rpt *.svd ### macOS template # General .DS_Store .AppleDouble .LSOverride # Icon must end with two \r Icon # Thumbnails ._* # Files that might appear in the root of a volume .DocumentRevisions-V100 .fseventsd .Spotlight-V100 .TemporaryItems .Trashes .VolumeIcon.icns .com.apple.timemachine.donotpresent # Directories potentially created on remote AFP share .AppleDB .AppleDesktop Network Trash Folder Temporary Items .apdisk ### JEnv template # JEnv local Java version configuration file .java-version # Used by previous versions of JEnv .jenv-version ### SBT template # Simple Build Tool # http://www.scala-sbt.org/release/docs/Getting-Started/Directories.html#configuring-version-control dist/* lib_managed/ src_managed/ project/boot/ project/plugins/project/ .history .lib/ ### Otto template .otto/ ### Espresso template *.esproj ### Redcar template .redcar ### Redis template # Ignore redis binary dump (dump.rdb) files *.rdb ### Anjuta template # Local configuration folder and symbol database /.anjuta/ /.anjuta_sym_db.db ### NetBeans template **/nbproject/private/ **/nbproject/Makefile-*.mk **/nbproject/Package-*.bash nbbuild/ nbdist/ .nb-gradle/ ### TextMate template *.tmproj *.tmproject tmtags ### Vim template # Swap [._]*.s[a-v][a-z] !*.svg # comment out if you don't need vector files [._]*.sw[a-p] [._]s[a-rt-v][a-z] [._]ss[a-gi-z] [._]sw[a-p] # Session Session.vim Sessionx.vim # Temporary .netrwhist # Auto-generated tag files # Persistent undo [._]*.un~ ### JDeveloper template # default application storage directory used by the IDE Performance Cache feature .data/ # used for ADF styles caching temp/ # default output directories classes/ deploy/ javadoc/ # lock file, a part of Oracle Credential Store Framework cwallet.sso.lck ### Virtuoso template # Gitignore for Cadence Virtuoso ################################################################ # Log files panic*.log.* # OpenAccess database lock files *.cdslck* # Run directories for layout vs. schematic and design rule check lvsRunDir/* drcRunDir/* # Abstract generation tool abstract.log* abstract.record* ### GPG template secring.* kvanzuijlen-justnimbus-217917e/LICENSE.md000066400000000000000000000261351463631431500201550ustar00rootroot00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. kvanzuijlen-justnimbus-217917e/README.md000066400000000000000000000003551463631431500200240ustar00rootroot00000000000000# JustNimbus Simple Python wrapper for the API provided by JustNimbus. A subscription is needed to use the API. For more information, go to [JustNimbus](https://justnimbus.com/). **NOTE:** I'm not affiliated with JustNimbus in any way. kvanzuijlen-justnimbus-217917e/poetry.lock000066400000000000000000000057211463631431500207430ustar00rootroot00000000000000# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "certifi" version = "2023.7.22" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" files = [ {file = "certifi-2023.7.22-py3-none-any.whl", hash = "sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9"}, {file = "certifi-2023.7.22.tar.gz", hash = "sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082"}, ] [[package]] name = "charset-normalizer" version = "2.0.12" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." optional = false python-versions = ">=3.5.0" files = [ {file = "charset-normalizer-2.0.12.tar.gz", hash = "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597"}, {file = "charset_normalizer-2.0.12-py3-none-any.whl", hash = "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df"}, ] [package.extras] unicode-backport = ["unicodedata2"] [[package]] name = "idna" version = "3.7" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.5" files = [ {file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"}, {file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"}, ] [[package]] name = "requests" version = "2.32.2" description = "Python HTTP for Humans." optional = false python-versions = ">=3.8" files = [ {file = "requests-2.32.2-py3-none-any.whl", hash = "sha256:fc06670dd0ed212426dfeb94fc1b983d917c4f9847c863f313c9dfaaffb7c23c"}, {file = "requests-2.32.2.tar.gz", hash = "sha256:dd951ff5ecf3e3b3aa26b40703ba77495dab41da839ae72ef3c8e5d8e2433289"}, ] [package.dependencies] certifi = ">=2017.4.17" charset-normalizer = ">=2,<4" idna = ">=2.5,<4" urllib3 = ">=1.21.1,<3" [package.extras] socks = ["PySocks (>=1.5.6,!=1.5.7)"] use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] [[package]] name = "urllib3" version = "1.26.19" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7" files = [ {file = "urllib3-1.26.19-py2.py3-none-any.whl", hash = "sha256:37a0344459b199fce0e80b0d3569837ec6b6937435c5244e7fd73fa6006830f3"}, {file = "urllib3-1.26.19.tar.gz", hash = "sha256:3e3d753a8618b86d7de333b4223005f68720bcd6a7d2bcb9fbd2229ec7c1e429"}, ] [package.extras] brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"] secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"] socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] [metadata] lock-version = "2.0" python-versions = "^3.7" content-hash = "4ad0e50ab165d9914bab266bb7bbfd7d6107a5e888d859c1066445e4fd429f5c" kvanzuijlen-justnimbus-217917e/pyproject.toml000066400000000000000000000007671463631431500214700ustar00rootroot00000000000000[tool.poetry] name = "justnimbus" version = "0.7.4" description = "A Python Wrapper for the Just Nimbus API" authors = ["kvanzuijlen <8818390+kvanzuijlen@users.noreply.github.com>"] repository = "https://github.com/kvanzuijlen/justnimbus" classifiers = [ "License :: OSI Approved :: Apache Software License", ] [tool.poetry.dependencies] python = "^3.10" requests = "^2.27.1" [tool.poetry.dev-dependencies] [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" kvanzuijlen-justnimbus-217917e/src/000077500000000000000000000000001463631431500173315ustar00rootroot00000000000000kvanzuijlen-justnimbus-217917e/src/justnimbus/000077500000000000000000000000001463631431500215345ustar00rootroot00000000000000kvanzuijlen-justnimbus-217917e/src/justnimbus/__init__.py000066400000000000000000000016051463631431500236470ustar00rootroot00000000000000import requests from justnimbus.exceptions import InvalidClientID, JustNimbusError from justnimbus.model import JustNimbusModel class JustNimbusClient: def __init__(self, client_id: str, zip_code: str): self._client_id = client_id self._zip_code = zip_code def get_data(self) -> JustNimbusModel: url = f"https://dashboard.justnimbus.com/user/view.php?system={self._client_id}&zip={self._zip_code}&output=json" response = requests.get(url=url) try: response.raise_for_status() return JustNimbusModel.from_dict(response.json()[0]) except requests.HTTPError as error: if response.status_code == 404: raise InvalidClientID(client_id=self._client_id) from error raise JustNimbusError() from error except LookupError as error: raise JustNimbusError() from error kvanzuijlen-justnimbus-217917e/src/justnimbus/exceptions.py000066400000000000000000000003431463631431500242670ustar00rootroot00000000000000class JustNimbusError(Exception): pass class InvalidClientID(JustNimbusError): def __init__(self, client_id: str): super().__init__(f"{client_id!r} is an invalid client_id") self.client_id = client_id kvanzuijlen-justnimbus-217917e/src/justnimbus/model.py000066400000000000000000000022331463631431500232060ustar00rootroot00000000000000import dataclasses from datetime import datetime @dataclasses.dataclass class JustNimbusModel: api_version: str system_last_update: datetime system_flow: str reservoir_capacity: float reservoir_content: float reservoir_temp: float pump_type: str pump_pressure: float water_saved: float water_used: float @classmethod def from_dict(cls, data: dict): return JustNimbusModel( api_version=str(data["api_version"]), system_last_update=datetime.fromisoformat(data["system_last_update"]), system_flow=str(data["system_flow"]), reservoir_capacity=_to_float(data["reservoir_capacity"]), reservoir_content=_to_float(data["reservoir_content"]), reservoir_temp=_to_float(data["reservoir_temp"]), pump_type=str(data["pump_type"]), pump_pressure=_to_float(data["pump_pressure"]), water_saved=_to_float(data["water_saved"]), water_used=_to_float(data["water_used"]), ) def _to_float(value: str) -> float | None: try: return float(value) except (ValueError, TypeError): return None