Skip to main content

A TTY client application for pnut.io

Project description

pnutty

A TTY client application for pnut.io

Installation from source

$ git clone https://codeberg.org/thrrgilag/pnutty
$ cd pnutty
$ pip install .

Basic Usage

When you first launch pnutty, you'll need to login your account on pnut.io with the login command.

pnutty% login
Visit the following URL to authorize with pnut.io and paste the token here.

https://pnut.io/oauth/authenticate?client_id=qx87SsGu3NZINwAUxEk1bC1TICzupv5e&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=basic,stream,write_post,follow,presence,messages,files&response_type=token

TOKEN: 

After successfully authenticating your timeline will load automatically and new posts will show as they stream in. To get a list of available commands use help.

pnutty% help -v

Documented commands (use 'help -v' for verbose/'help <topic>' for details):
======================================================================================================
again                 Replay your stream                                                              
alias                 Manage aliases                                                                  
bookmark              Bookmark a post                                                                 
browse                Open a post in the web browser                                                  
edit                  Run a text editor and optionally open a file with it                            
global                Switch timeline to global                                                       
help                  List available commands or provide detailed help for a specific command         
history               View, run, edit, save, or clear previously entered commands                     
login                 Log in to pnut.io                                                               
logout                Log out of pnut.io                                                              
macro                 Manage macros                                                                   
personal              Switch timeline to personal                                                     
post                  Post to pnut.io                                                                 
quit                  Exit this application                                                           
reply                 Reply to a post                                                                 
replyall              Reply to all of a post                                                          
replycc               Reply to a post and cc others                                                   
replyg                Reply globally to a post                                                        
repost                Repost a post                                                                   
run_pyscript          Run a Python script file inside the console                                     
run_script            Run commands in script file that is encoded as either ASCII or UTF-8 text       
set                   Set a settable parameter or show current settings of parameters                 
shell                 Execute a command as if at the OS prompt                                        
shortcuts             List available shortcuts                                                        
unbookmark            Remove a bookmark                                                               
unified               Switch timeline to unified                                                      
unrepost              Repost a post                                                                   

Client settings can be viewed and altered with the set command.

pnutty% set
Name                  Value                           Description                                                 
==================================================================================================================
allow_style           Terminal                        Allow ANSI text style sequences in output (valid values:    
                                                      Always, Never, Terminal)                                    
always_show_hint      False                           Display tab completion hint even when completion suggestions
                                                      print                                                       
debug                 False                           Show full traceback on exception                            
echo                  False                           Echo command issued into output                             
editor                /usr/bin/nano                   Program used by 'edit'                                      
feed                  False                           Enable live feed                                            
feedback_to_output    False                           Include nonessentials in '|', '>' results                   
max_completion_items  50                              Maximum number of CompletionItems to display during tab     
                                                      completion                                                  
quiet                 False                           Don't print nonessential feedback                           
show_links            False                           Show link to post                                           
timeline              personal                        Set timeline to [global, unified, or personal]              
timing                False                           Report execution times

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pnutty-0.0.6.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

pnutty-0.0.6-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file pnutty-0.0.6.tar.gz.

File metadata

  • Download URL: pnutty-0.0.6.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for pnutty-0.0.6.tar.gz
Algorithm Hash digest
SHA256 7b28abedb23ca857efe2f2c6b39c15156d3295783f5d3e494c02d7014b2004fc
MD5 ef5315f0a30e087d190405d3b7442e09
BLAKE2b-256 c622551f2a56ed602cafa0274c405ce3e5e19e67f0a6a5fdc16b35c04e6e1134

See more details on using hashes here.

File details

Details for the file pnutty-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pnutty-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for pnutty-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 93a9dc683bd18366f8c8f9b8cb8931066cc87540bdb430e018320774f8f4cb8b
MD5 292a63d8e353f8148f1fdca6ec395aec
BLAKE2b-256 6bf2cdfac971c29eb68be093a295969b075580bd0bbdb433d955e09bb939e1e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page