File: create_descriptor_content.py

package info (click to toggle)
python-stem 1.8.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,152 kB
  • sloc: python: 33,747; java: 312; makefile: 124; sh: 14
file content (3 lines) | stat: -rw-r--r-- 131 bytes parent folder | download | duplicates (4)
1
2
3
from stem.descriptor.server_descriptor import RelayDescriptor

print(RelayDescriptor.content({'router': 'demo 127.0.0.1 80 0 0'}))