123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- import os
- os.system("chmod u+x flbry/lbrynet")
- from flbry.variables import *
- print(" "+clr["bdma"]+wdth(" ",89)+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+wdth(" ",87)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+wdth(" ",87)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+wdth(" ",87)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+clr["bold"]+wdth(" ",16)+" _____ ____ ____"+wdth(" ",27)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+clr["bold"]+wdth(" ",16)+" | | | \ | \ | |"+wdth(" ",17)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+clr["bold"]+wdth(" ",16)+" | ___ _______ | | | | | \ /"+wdth(" ",17)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+clr["bold"]+wdth(" ",16)+" |___ /\ | | | |____/ |____/ \ / "+wdth(" ",17)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+clr["bold"]+wdth(" ",16)+" | / \ |___ | | | \ | \ \ / "+wdth(" ",17)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+clr["bold"]+wdth(" ",16)+" | /____\ | | | | | | | | "+wdth(" ",17)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+clr["bold"]+wdth(" ",16)+" | / \ ___| | |_____ |____/ | | | "+wdth(" ",17)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+wdth(" ",87)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+clr["bold"]+wdth(" ",16)+" The Terminal Client "+wdth(" ",17)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+wdth(" ",87)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+wdth(" ",87)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bdma"]+" "+clr["bdbu"]+wdth(" ",87)+clr["bdma"]+" "+clr["norm"])
- print(" "+clr["bold"]+clr["bdma"],
- " ---type help to see list of features---",
- wdth(" ",24)+clr["norm"])
- from flbry import connect
- from flbry import search
- from flbry import channel
- from flbry import wallet
- from flbry import uploads
- from flbry import list_files
- while True:
- command = input(" : ")
- if command == "exit":
- connect.stop()
- break
-
- elif command == "quit":
- print(" Quit does not disconnect the SDK!")
- print(" To disconnet use exit or disconnect.")
- break
-
- elif command == "help":
- print("""
- This is the help menu of the FastLBRY. It will list the currently
- implemented features. If you want to help us develop more features
- or help with understanding the LBRY SDK. You can contact us either
- in the repository or using the Matrix chat.
- -------------------| HELP AND CONTRIBUTION |----------------------
- help - Returns this help message.
- exit - Exits the software.
- quit - Exit the program without disconnecting. Used for
- testing new code changes.
- matrix - Gives the Matrix url to join the official room.
- repository - Gives the repository url for contributors.
- report - Gives the url of the issue tracker.
- license - Returns the legal code of the license.
-
- -------------------| SIMPLE LBRY COMMANDS |----------------------
- connect - Will connect to the LBRY network
- disconnect - Will disconnect from the LBRY network
- search - Give you an ability to search on LBRY
- channel - Gives a list of publications from a
- specific LBRY channel. Use lbry link to
- the channel and not the title.
- ------------------| ACCOUNT MANAGEMENT |-----------------------
- login - Logic into LBRY
- history - See your download history.
- uploads - See your upload history.
- wallet - See wallet history.
- """)
-
-
- elif command == "matrix":
- print(" #FastLBRY:matrix.org")
- elif command == "repository":
- print(" https://notabug.org/jyamihud/FastLBRY-terminal")
- elif command == "report":
- print(" https://notabug.org/jyamihud/FastLBRY-terminal/issues")
- elif command == "license":
- l = open("LICENSE", "r")
- print(l.read())
-
- elif command == "connect":
- connect.start()
-
- elif command == "disconnect":
- connect.stop()
- elif command == "history":
- list_files.downloaded()
- elif command.startswith("search"):
- if " " in command:
- search.simple(command[command.find(" ")+1:])
- else:
- search.simple()
- elif command.startswith("channel"):
- if " " in command:
- channel.simple(command[command.find(" ")+1:])
- else:
- channel.simple()
-
-
- elif command == "login":
- print("""
- Currently FastLBRY login is not yet implement. But it is
- possible to login. While hacking on the LBRY SDK ( lbrynet )
- I realized that it shares account information with any
- lbrynet running on the same system. So if you launch the
- LBRY Desktop app ones to log in, it will spread the login
- to all the other SDKs including FastLBRY.
- As soon as I will figure out how to make a login. I will
- implement it here, and this message will disappear.
- For now. Get LBRY Desktop ( lbry.com ) login there. And
- come back to here. You will be logged in.
- """)
-
- elif command == "wallet":
- wallet.history()
- elif command == "uploads":
- uploads.simple()
|