Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: game-by-virtuals
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 13.5 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 10 months ago · Last pushed 10 months ago
Metadata Files
Readme License Citation

README.md

Virtuals Protocol Tweepy: Twitter for Python!

Installation

The easiest way to install the latest version from PyPI is by using pip:

bash pip install virtuals-tweepy

Quickstart: Initialize Client with Virtuals Protocol's GAME Access Token

How to Get a GAME API Key

  1. Go to the Virtuals Protocol's GAME Console
  2. Sign in with your wallet.
  3. Click on "Create a New Project" to register a new project.
  4. Once your project is created, click on "Generate one now" under "API Key" to generate your API key.

How to Get GAME X Access Token (Virtuals Protocol's X Enterprise API)

  • To get the access token for this option, run the following command:

bash poetry run virtuals-tweepy auth -k <GAME_API_KEY>

You will see the following output:

```bash Waiting for authentication...

Visit the following URL to authenticate: https://x.com/i/oauth2/authorize?responsetype=code&clientid=VVdyZ0t4WFFRMjBlMzVaczZyMzU6MTpjaQ&redirecturi=http%3A%2F%2Flocalhost%3A8714%2Fcallback&state=866c82c0-e3f6-444e-a2de-e58bcc95f08b&codechallenge=K47t-0Mcl8B99ufyqmwJYZFB56fiXiZf7f3euQ4H20&codechallenge_method=s256&scope=tweet.read%20tweet.write%20users.read%20offline.access ```

After authenticating, you will receive the following message:

bash Authenticated! Here's your access token: apx-<xxx>

  • With this access token, you can enjoy up to 35 calls per 5 minutes to the X API, which is significantly higher than the standard X API plan.

  • If you've obtained a GAME Twitter Access Token via the GAME authentication flow, set it as environment variables (e.g. using a .env file with python-dotenv): dotenv GAME_TWITTER_ACCESS_TOKEN=apx-<game-twitter-access-token>

  • You can now initialize the Tweepy client directly with it:

```python import os

from virtualstweepy import Client from dotenv import loaddotenv

load_dotenv()

gametwitteraccesstoken = os.environ.get("GAMETWITTERACCESSTOKEN")

client = Client( gametwitteraccesstoken=gametwitteraccesstoken ) ```

Using your own X API credentials

  • If you don't already have one, create an X (Twitter) account and navigate to the developer portal.
  • Create a project app, generate the following credentials and set them as environment variables(e.g. using a .env file with python-dotenv): dotenv TWITTER_BEARER_TOKEN=<twitter-bearer-token> TWITTER_API_KEY=<twitter-api-key> TWITTER_API_KEY_SECRET=<twitter-api-secret-key> TWITTER_ACCESS_TOKEN=<twitter-access-token> TWITTER_ACCESS_TOKEN_SECRET=<twitter-access-token-secret>

  • If you decide to use your own X API credentials, you can initialize the Tweepy client with them as follows:

```python import os

from virtualstweepy import Client from dotenv import loaddotenv

load_dotenv()

# 1. Twitter API OAuth 2.0 bearertoken = os.environ.get("TWITTERBEARER_TOKEN")

client = Client( bearertoken=bearertoken )

# 2. Twitter API OAuth 1.0a consumerkey = os.environ.get("TWITTERAPIKEY") consumersecret = os.environ.get("TWITTERAPIKEYSECRET") accesstoken = os.environ.get("TWITTERACCESSTOKEN") accesstokensecret = os.environ.get("TWITTERACCESSTOKEN_SECRET")

client = Client( consumerkey=consumerkey, consumersecret=consumersecret, accesstoken=accesstoken, accesstokensecret=accesstokensecret, ) ```

Latest version of Python and older versions not end of life (bugfix and security) are supported.

Acknowledgments

This project is a modified version of Tweepy by Virtuals Protocol, originally created by Joshua Roesslein. Original work is Copyright (c) 2009-2023 Joshua Roesslein and is licensed under the MIT License.

Owner

  • Name: G.A.M.E
  • Login: game-by-virtuals
  • Kind: organization

GAME is a modular agentic framework which enables an agent to plan actions and make decisions autonomously based on information provided to it.

Citation (CITATION.cff)

cff-version: 1.2.0
title: Tweepy
message: "If you use Tweepy, please cite it using this metadata."
abstract: "Tweepy is a Python library for interfacing with Twitter's API."
authors:
  - given-names: Harmon
    alias: Harmon758
    orcid: "https://orcid.org/0000-0002-2632-0921"
  - given-names: Joshua
    family-names: Roesslein
  - name: "other contributors"
doi: 10.5281/zenodo.7259945
identifiers:
  - description: "The concept DOI for the collection containing all versions of Tweepy"
    type: doi
    value: 10.5281/zenodo.7259945
  - description: "The versioned DOI for version 4.12.0 of Tweepy"
    type: doi
    value: 10.5281/zenodo.7259946
  - description: "The versioned DOI for version 4.12.1 of Tweepy"
    type: doi
    value: 10.5281/zenodo.7296886
  - description: "The versioned DOI for version 4.13.0 of Tweepy"
    type: doi
    value: 10.5281/zenodo.7713369
  - description: "The versioned DOI for version 4.14.0 of Tweepy"
    type: doi
    value: 10.5281/zenodo.7860636
keywords:
  - Python
  - Twitter
license: MIT
repository-code: 'https://github.com/tweepy/tweepy'
type: software
url: 'https://www.tweepy.org/'

GitHub Events

Total
  • Watch event: 2
  • Delete event: 2
  • Push event: 27
  • Pull request review comment event: 2
  • Pull request review event: 5
  • Pull request event: 4
  • Fork event: 1
  • Create event: 6
Last Year
  • Watch event: 2
  • Delete event: 2
  • Push event: 27
  • Pull request review comment event: 2
  • Pull request review event: 5
  • Pull request event: 4
  • Fork event: 1
  • Create event: 6

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 557 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 0
    (may contain duplicates)
  • Total versions: 8
  • Total maintainers: 1
pypi.org: virtuals-tweepy

A fork of Tweepy adapted to work with Virtuals's enterprise Twitter endpoint

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 536 Last month
Rankings
Dependent packages count: 9.2%
Average: 30.5%
Dependent repos count: 51.8%
Maintainers (1)
Last synced: 6 months ago
pypi.org: virtual-tweepy

A fork of Tweepy adapted to work with Virtuals's enterprise Twitter endpoint

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 21 Last month
Rankings
Dependent packages count: 9.2%
Average: 30.5%
Dependent repos count: 51.9%
Maintainers (1)
Last synced: 6 months ago

Dependencies

pyproject.toml pypi
  • oauthlib >=3.2.0,<4
  • requests >=2.27.0,<3
  • requests-oauthlib >=1.2.0,<3
poetry.lock pypi
  • aiohappyeyeballs 2.6.1
  • aiohttp 3.11.18
  • aiosignal 1.3.2
  • async-lru 2.0.5
  • async-timeout 5.0.1
  • attrs 25.3.0
  • cachetools 5.5.2
  • certifi 2025.4.26
  • chardet 5.2.0
  • charset-normalizer 3.4.2
  • colorama 0.4.6
  • coverage 6.5.0
  • coveralls 3.3.1
  • distlib 0.3.9
  • docopt 0.6.2
  • filelock 3.18.0
  • frozenlist 1.6.0
  • idna 3.10
  • multidict 6.4.3
  • oauthlib 3.2.2
  • packaging 25.0
  • platformdirs 4.3.7
  • pluggy 1.5.0
  • propcache 0.3.1
  • pyproject-api 1.9.0
  • pyyaml 6.0.2
  • requests 2.32.3
  • requests-oauthlib 2.0.0
  • tomli 2.2.1
  • tox 4.25.0
  • typing-extensions 4.13.2
  • urllib3 1.26.20
  • vcrpy 7.0.0
  • virtualenv 20.30.0
  • wrapt 1.17.2
  • yarl 1.20.0