Metadata-Version: 2.1
Name: txhttputil
Version: 1.4.9
Summary: Flying Ion utility classes for serving a static site with twisted.web with user permissions.
Author-email: Flying Ion Pty Ltd <contact@flyingion.com>
License: MIT License
        
        Copyright (c) 2016-2026 Flying Ion Pty Ltd
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
        
Project-URL: Homepage, https://flyingion.com
Project-URL: Repository, https://gitlab.com/flyingion/txhttputil
Project-URL: Issues, https://gitlab.com/flyingion/txhttputil/-/issues
Keywords: twisted,resource,file,download,flying-ion
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytz
Requires-Dist: txwebsocket>=1.0.1
Requires-Dist: filetype
Requires-Dist: pem
Requires-Dist: pytmpdir
Requires-Dist: treelib>=1.6.4
Requires-Dist: cryptography
Requires-Dist: pyOpenSSL
Provides-Extra: dev
Requires-Dist: mypy>=1.0; extra == "dev"
Requires-Dist: ruff>=0.15; extra == "dev"
Requires-Dist: vulture>=2.14; extra == "dev"
Requires-Dist: basedpyright>=1.20; extra == "dev"

# TxHttpUtil
Flying Ion utility classes for serving a static site with twisted.web with user permissions.

Whats of interest?

* Protected resource with simple form login - Not suitable for public networks at this
stage
* A resource that underlays a multi level file system search under a standard twisted
Resource.putChild type resource tree.
* Twisted HTTP File Downloader
* Consistent request data, providing a Bytes IO like oboject and switching to a
NamedTemporaryFile if fileno, or name is called, or the data exceeds 5mb.
* Support for single page applications

# TODO

Unit tests for :
* Creating resource trees
* Getting resources from the resource tree
* Getting files from an underlay resource with two underlays
* Downloading files with the 
* Logging into the test site (Using Seleneium/Chrome WebDriver)
* Test uploading data under 5mb and over 5mb to and auto switching to NamedTemporaryFile
from BytesIO

## License

Copyright (c) 2016-2026 [Flying Ion Pty Ltd](https://flyingion.com). Released under the [MIT License](LICENSE).
