### Navigation

- index
- modules |
- next |
- previous |
- pywws 14.06.dev1238 documentation »
- Python programs and modules »

# pywws.ToTwitter

Post a message to Twitter

    usage: python -m pywws.ToTwitter [options] data_dir file
    options are:
     -h | --help  display this help
    data_dir is the root directory of the weather data
    file is the text file to be uploaded

This module posts a brief message to Twitter. Before posting to Twitter you need to set up an account and then authorise pywws by running the `TwitterAuth` program. See How to configure pywws to post messages to Twitter for detailed instructions.

Functions

`ApplicationLogger`(verbose[, logfile]) |
`main`([argv]) |

Classes

`ToTwitter`(params) |
`pct` |

class `pywws.ToTwitter.``TweepyHandler`(key, secret, latitude, longitude)
  `post`(status, media)

class `pywws.ToTwitter.``PythonTwitterHandler`(key, secret, latitude, longitude)
  `post`(status, media)

class `pywws.ToTwitter.``ToTwitter`(params)
  `Upload`(tweet)
  `UploadFile`(file)

`pywws.ToTwitter.``main`(argv=None)

Comments or questions? Please subscribe to the pywws mailing list http://groups.google.com/group/pywws and let us know.

### Navigation

- index
- modules |
- next |
- previous |
- pywws 14.06.dev1238 documentation »
- Python programs and modules »