Skip to content

About

A library for generating IDs for drone RP.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

103 Commits

Folders and files

Repository files navigation

DroneTools

DroneTag - Python module for creating drone IDs

  • Generate QR code or Barcode
  • Customizable text, font, colors, and logos

See DroneTag Docs


HandlerBadge - Python module for creating handler IDs

  • 3 styles to chose from that change with QR code or Barcode
  • Customizable text, font, colors, logos, and ID image

See HandlerBadge Docs



Install Dependancies

pip install -r requirements.txt

Getting Started

DroneTag

More examples and tests in Sample.py
Documentation and usage can be found in DroneTag Docs

# import the class
from DroneTools import DroneTag

drone_ids = [] # This is optional. Used to track used IDs to handle hash collisions.

# Make Drone
drone_data = {
        "name": "Rory",
        "title": "Pup Drone",
        "front_color": "#DC141E",
}
drone_tag = DroneTag(drone_data, drone_ids)

# The only key needed is 'name' or 'drone_id',
# name is used to generate a drone_id and the rest will use default values.
# See Docs and Samples for more info

# Save your tag.
drone_tag.save("/path/to/output.png")

HandlerBadge

More examples and tests in Sample.py
Documentation and usage can be found in HandlerBadge Docs

# import the class
from DroneTools import HandlerBadge

# Array for stats info
handler_side_info = [
    "prn:", "they/them", "",
    "Gen:", "NB", "",
    "blood:", "A","",
    "Class:", "D",
]

# Make Badge
handlers_data = {
    "side_text": "Your Name",
	"handler_side_info": handler_side_info,
    "front_color": "#DC141E",
    "badge_style": 1,
}
handlers_badge = HandlerBadge(handlers_data)

# Any not supplied keys will use default values or not be rendered.
# See Docs and Samples for more info

# Save your badge.
handlers_badge.save("/path/to/output.png")

Docs

About

A library for generating IDs for drone RP.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages