semvec/pypi-packages huggingface dataset:
tweet-generator 0.0.31
Package for generating randomized tweets of a user on twitter.
License: MIT
Requires Python: >=3.6.0


===============
Tweet Generator
===============
The tweet generator uses a Markov chain finite state model to take a
particular user id from twitter and generate tweets based off of that person's
previous tweets. The tweets are stored in a JSON document which allows for random
walks of the tweets to occur.

=====
Goals
=====

- Simplify creating a basic Markov Chain Twitter Bot.
- Easy to read and provide an introduction to a simple way to create something intelligent!

=====================
Features
=====================

- Option to remove urls.
- Option for proper capitalization
- Output of the generated tree into a pretty JSON Format that you can review.
- Scraping of the Twitter API using the Tweepy Library

============
Installation
============

To install, use pip ::

    pip install tweet-generator

=======
Example
=======

See the following example::

    from tweet_generator import tweet_generator
    TPCK = '<public_consumer_key>'
    TSCK = '<secret_consumer_key>'
    TPAK = '<public_access_key>'
    TSAK = '<secret_access_key>'
    twitter_bot = tweet_generator.PersonTweeter('25073877',TPCK,TSCK,TPAK,TSAK)
    random_tweet = twitter_bot.generate_random_tweet()
    print(random_tweet)
coingate 0.1.1.dev3
Basic CoinGate API client
License: MIT
Keywords: coingate payment

Coingate Python
===============

Simple API client for the `CoinGate <https://coingate.com/>`__ service.

Usage
-----

Latest API version
~~~~~~~~~~~~~~~~~~

.. code:: python

    from coingate.client import CoinGateClient

The ``CoinGateClient`` class will inherit methods from the latest API’s
supported version client. Currently, it is API V2.

API V2
~~~~~~

.. code:: python

    from coingate.client import CoinGateV2Client, CoinGateV2Order

    # Create a client
    # To use the production API, add env="live"
    client = CoinGateV1Client("app_id", "api_token"")

    # Prepare an order
    new_order = CoinGateV2Order.new(
        "order-ID",
        10.5,
        "USD",
        "USD",
        callback_url='https://api.example.com/paymentcallback?token=randomtoken',
        cancel_url='https://www.example.com/ordercancelled',
        success_url='https://www.example.com/orderprocessed')

    # Create the order
    placed_order = client.create_order(new_order)

    # Get the payment URL:
    print(placed_order.payment_url)

    # List orders :
    orders = list(client.iterate_all_orders())

    # Get an order by id:
    order = orders[0].coingate_id

API V1
~~~~~~

.. code:: python

    from coingate.client import CoinGateV1Client, CoinGateV1Order

    # Create a client
    # To use the production API, add env="live"
    client = CoinGateV1Client("app_id", "api_key", "api_secret")

    # Prepare an order
    new_order = CoinGateV1Order.new(
        "order-ID",
        10.5,
        "USD",
        "USD",
        callback_url='https://api.example.com/paymentcallback?token=randomtoken',
        cancel_url='https://www.example.com/ordercancelled',
        success_url='https://www.example.com/orderprocessed')
        
    # Create the order
    placed_order = client.create_order(new_order)

    # Get the payment URL:
    print(placed_order.payment_url)

    # List orders :
    orders = list(client.iterate_all_orders())

    # Get an order by id:
    order = orders[0].coingate_id