Giter Club home page Giter Club logo

hmrc.csp-tool's Introduction

csp-tool

Tools for handling and reviewing Content Security Policies in use. These are written with automation in mind; in the absence of other apis or automated tools (to date).

License

This code is open source software licensed under the Apache 2.0 License.

Handy Content Security Policy references

Dev: Using the source

The best entry point to understanding the code is the tests; reading the tests should give you an idea of usecases. More docs will be incrementally added.

Set up

For the best way to run the tests it's worth setting your environment up as follows:

  1. install pyenv (this will pick up the python version from .python-version)
  2. install poetry (with the above version of python)
  3. run poetry install
  4. run poetry show to check project details

Useful resources

Run tests

on the command line from the project root run poetry run pytest

Building source & wheel

on the command line from the project root run poetry build

Consume in your project

If you can't find this package as csp-tool on pypi.org (and therefore pip) you can still install it as a module in your consuming project by using

pip install /path/to/csp_tool-0.1.0-py3-none-any.whl

or list ./../relative/path/to/csp_tool-0.1.0-py3-none-any.whl in your requirements.txt file.

If you're using Poetry in your own project you can add this to your pyproject.toml

[tool.poetry.dependencies]
my-package = { file = "path/to/csp_tool-0.1.0-py3-none-any.whl" }

hmrc.csp-tool's People

Contributors

hmrc-web-operations avatar tess-barnes-mt avatar zemanlx avatar jezd-hmrc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.