Skip to main content

A package for rendering file securely

Project description

SecureFileRendering

Installing

Install and update using pip:

$ pip install SecureFileRendering

A Simple Example

from SecureFileRendering import SecureFileRendering

app = Flask(__name__)
app.config['SECURE_ROUTE_STRING'] = "/test"
sfr = SecureFileRendering(app)

@app.route("/downloadpdf")
def test_pdf():
	path = "static/a.pdf"
	return sfr.securely_render_file(path)

@app.route("/downloadzip")
def test_zip():
	paths = ["static/a.pdf"]
	return sfr.securely_render_file(paths, many=True)

if __name__ == '__main__':
	app.run()

Dependencies

  • Flask-Session
  • Flask

Description

Mention any path of a file and render the file securely without exposing the folder structure. File will be downloaded with a secure link which can be accessed only once. Example: /test/12345678

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

securefilerendering-0.0.2a0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SecureFileRendering-0.0.2a0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file securefilerendering-0.0.2a0.tar.gz.

File metadata

  • Download URL: securefilerendering-0.0.2a0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for securefilerendering-0.0.2a0.tar.gz
Algorithm Hash digest
SHA256 8080d96a24da9404d57e835dc064a982da5c3f2cde5d490a1393e07dcafd4e47
MD5 668206e0d7022badb562a99ca24f5d1d
BLAKE2b-256 48bff75c229d3275a5002fc62ff598fa9e734c9c8765d6a643c7778b809093df

See more details on using hashes here.

File details

Details for the file SecureFileRendering-0.0.2a0-py3-none-any.whl.

File metadata

File hashes

Hashes for SecureFileRendering-0.0.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d43595fcee35be7a72c70f91a3c86ffa70561209d7c066899f32e2ba0388880
MD5 0b8c6fa00e3d384f93f90e4f888c32c2
BLAKE2b-256 6a93b0b25560b58ddcd206bf077f11d44152a635b6c846cf93d254c370a903b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page