Globalist.py 1007 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. # Globalist: manage a global repo via decentral git instances
  4. # you may peer with any number of other Globalist onions
  5. # Think onionshare, but with permanent onion addresses, P2P and DVCS
  6. # Python2/3. Dependencies:
  7. # - stem (torsocks pip install stem / via distro)
  8. # a recent version (>= 1.5.0) is needed for auth
  9. # - git must be installed
  10. # - torsocks must be installed
  11. # - tor must be up and running and the ControlPort open
  12. # Use scenario:
  13. # a) Run Tor.
  14. # b) Run the server in the background and schedule a job for pulling from peers.
  15. # it is a git server that listens on <your-identifier>.onion:9418
  16. # it's to be expected that peers uptime will intersect with yours
  17. # only a fraction of the time.
  18. # c) Globalist.py creates a git, which you may use to push and pull your own changes.
  19. # Bugs:
  20. # FIXME: clean up hidservauth entries on stop
  21. import globalist
  22. import sys
  23. if __name__=='__main__':
  24. globalist.main(args=sys.argv[1:])