Skip to content

bvn-architecture/py-brand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BVN Values

PyPI version

A Python package containing BVN brand values: colours, studio addresses, and company information.

Installation

The package is on PyPI and GitHub.

pip install bvn_values

Usage

Company info

from bvn_values import company_name, website_url, abn, acn, social_media

print(company_name)  # "BVN"
print(website_url)   # "https://www.bvn.com.au"
print(abn)           # "46 010 724 339"
print(acn)           # "010 724 339"
print(social_media)  # {"instagram": "...", "linkedin": "..."}

Brand colours

Colours match the official palette at brand.bvn.com.au, with hex, RGB, and CMYK values.

from bvn_values import get_brand_colours

colours = get_brand_colours()
print(colours["purple"]["hex"])   # "#6d67bd"
print(colours["purple"]["rgb"])   # (109, 103, 189)
print(colours["purple"]["cmyk"])  # (42, 46, 0, 26)

Studios

from bvn_values import studios, get_studio_html

# Access studio data
sydney = studios["sydney"]
print(sydney["phone"])        # "+61 2 8297 7200"
print(sydney["email"])        # "sydney@bvn.com.au"
print(sydney["timezone"])     # "Australia/Sydney"
print(sydney["coordinates"])  # {"latitude": -33.8718, "longitude": 151.2085}

# Generate an HTML address snippet
html = get_studio_html("sydney")
print(html)

Which gives:

<address>
  <strong>BVN Sydney</strong><br>
  Level 11<br>
  255 Pitt Street<br>
  Sydney NSW 2000<br>
  Australia<br>
  <a href="tel:+61282977200">+61 2 8297 7200</a><br>
  <a href="mailto:sydney@bvn.com.au">sydney@bvn.com.au</a>
</address>

Available studios: brisbane, sydney, london, new_york.

CLI

python -m bvn_values

Contributing

  1. Make your changes
  2. Update the version in src/bvn_values/__init__.py
  3. Commit and push
  4. Create a git tag: git tag v0.2.0 && git push origin v0.2.0
  5. The GitHub Action will build and publish to PyPI automatically

About

All the values you'll need in a BVN python project

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages