Automate-replit#
Introduction#
This is an async api wrapper for replit. It currently features:
A working replit client
A User object wrapper
A Presence update function
Basic notification collection
A raw gql interface
Installation#
pip install git+https://github.com/thatrandomperson5/automate-replit
The library requires Python 3.10 or newer.
Requirements#
Python >= 3.10
aiohttp >= 3.8.0
aiolimiter >= 1.0.0
Example#
Here is an example ethan-getter
Get data about the replit mod not-ethan#
from autoreplit import ReplitClient
client = ReplitClient()
async def getEthan():
ethan = await client.getUserByName("not-ethan")
print(f"Ethan's id: {ethan.id}")
print(f"Ethan's follower count: {ethan.followerCount}")
if ethan.isOnline:
print("Ethan is online!")
else:
print(f"Ethan was last seen {ethan.lastSeen}")
print(f"Ethan's roles: {ethan.roles}")
print(f"All of ethan: {ethan}")
client.run(getEthan())
Notes#
Note
Using asyncio.gather()
or another async concurrent method will increase preformance by
grouping requests into groups of 5.
Contents#
- Home
- API
- Client
- Query Result
- Basic Classes
- User
Role
Social
User
User.bio
User.displayName
User.firstName
User.followCount
User.followerCount
User.fullName
User.hasPrivacyRole
User.id
User.image
User.isBlockedByCurrentUser
User.isBlockingCurrentUser
User.isFollowedByCurrentUser
User.isFollowingCurrentUser
User.isOnline
User.isVerified
User.lastName
User.lastSeen
User.locale
User.publicRepls
User.roles
User.socials
User.url
User.userSubscriptionType
User.username
- Notifications
- Replit Projects
Repl
Repl.attachments
Repl.commentCount
Repl.commentSettings
Repl.config
Repl.currentUserDidLike
Repl.currentUserPermissions
Repl.database
Repl.description
Repl.domains
Repl.folderId
Repl.hasExplainCode
Repl.hasGenerateCode
Repl.hostedUrl
Repl.hostedUrlDev
Repl.hostedUrlDotty
Repl.hostedUrlNoCustom
Repl.iconUrl
Repl.id
Repl.imageUrl
Repl.inviteUrl
Repl.isAlwaysOn
Repl.isBoosted
Repl.isModelSolution
Repl.isModelSolutionFork
Repl.isOwner
Repl.isPrivate
Repl.isProject
Repl.isProjectFork
Repl.isRenamed
Repl.isStarred
Repl.isTutorial
Repl.lang
Repl.language
Repl.lastPublishedAt
Repl.layoutState
Repl.likeCount
Repl.markdownDescription
Repl.multiplayerInvites
Repl.multiplayers
Repl.nixedLanguage
Repl.origin
Repl.owner
Repl.publicForkCount
Repl.publishedAs
Repl.replViewSettings
Repl.rootOriginReplUrl
Repl.runCount
Repl.slug
Repl.tags
Repl.template
Repl.templateCategory
Repl.templateInfo
Repl.templateLabel
Repl.terminalUrl
Repl.timeCreated
Repl.timeUpdated
Repl.title
Repl.url
Repl.wasPosted
Repl.wasPublished
Repl.workspaceCta
- Comments