Metadata-Version: 1.1
Name: tweetmagick
Version: 0.2.1
Summary: Create images that look like tweets
Home-page: https://github.com/Szero/tweetmagick
Author: Szero
Author-email: singleton@tfwno.gf
License: ISC
Description: ===========
        tweetmagick
        ===========
        Generate images with tweet-like appearance
        
        Installation
        ------------
        ::
        
            pip3 install tweetmagick
        
        Examples
        --------
        
        Displaying the image and quitting without saving it can be done like so:
        
        .. code-block:: python
        
            from tweetmagick import TweetGenerator
        
            name = "harold"
            longname = "stockmaster"
            avatar = "harold.jpg"
            text = "feeling pompous today, might delete later"
            with TweetGenerator(name, longname, avatar, text) as tg:
                tg.tweetgen(debug=True)
        
        
        ``tweetgen`` method returns BytesIO object with png binary blob.
        Below is the code that will save your image to a file:
        
        .. code-block:: python
        
            from shutil import copyfileobj
        
            with TweetGenerator(name, longname, avatar, text, theme="light") as tg:
                with open("haroldtweets.png", "wb") as tweet:
                    copyfileobj(tg.tweetgen(), tweet)
        
        Results in :
        
        .. image:: haroldtweets.png
            :align: left
        
        
        With ``dark`` theme option:
        
        .. image:: haroldtweetsduringnight.png
            :align: left
        
        
        TODO
        ~~~~
        Implement some streamlined method for embedding images in tweets.
        
        Also some method for reply/quote images
        
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
