New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

directory-constants

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directory-constants

Constant values shared between Directory apps.

  • 24.1.3
  • PyPI
  • Socket score

Maintainers
2

directory-constants

circle-ci-image codecov-image pypi-image semver-image


Installation

pip install directory-constants

Environment variables

To change the default value of urls add the following to your settings.py:

Setting namedefault value
DIRECTORY_CONSTANTS_URL_GREAT_DOMESTIChttps://www.great.gov.uk
DIRECTORY_CONSTANTS_URL_SINGLE_SIGN_ONhttps://www.great.gov.uk/sso/
DIRECTORY_CONSTANTS_URL_EXPORT_OPPORTUNITIEShttps://www.great.gov.uk/export-opportunities/
DIRECTORY_CONSTANTS_URL_FIND_A_BUYERhttps://www.great.gov.uk/find-a-buyer/
DIRECTORY_CONSTANTS_URL_SELLING_ONLINE_OVERSEAShttps://www.great.gov.uk/selling-online-overseas/
DIRECTORY_CONSTANTS_URL_FIND_A_SUPPLIERhttps://www.great.gov.uk/trade/
DIRECTORY_CONSTANTS_URL_INVESThttps://invest.great.gov.uk
DIRECTORY_CONSTANTS_URL_EVENTShttps://www.events.trade.gov.uk

Development

$ git clone https://github.com/uktrade/directory-constants
$ cd directory-constants
[Create and activate your virtual environment]
$ make test_requirements

Testing

$ make test

Publish to PyPI

The package should be published to PyPI on merge to master. If you need to do it locally then get the credentials from rattic and add the environment variables to your host machine:

Setting
DIRECTORY_PYPI_USERNAME
DIRECTORY_PYPI_PASSWORD

Then run the following command:

make publish

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc