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
RoleSocialUserUser.bioUser.displayNameUser.firstNameUser.followCountUser.followerCountUser.fullNameUser.hasPrivacyRoleUser.idUser.imageUser.isBlockedByCurrentUserUser.isBlockingCurrentUserUser.isFollowedByCurrentUserUser.isFollowingCurrentUserUser.isOnlineUser.isVerifiedUser.lastNameUser.lastSeenUser.localeUser.publicReplsUser.rolesUser.socialsUser.urlUser.userSubscriptionTypeUser.username
- Notifications
- Replit Projects
ReplRepl.attachmentsRepl.commentCountRepl.commentSettingsRepl.configRepl.currentUserDidLikeRepl.currentUserPermissionsRepl.databaseRepl.descriptionRepl.domainsRepl.folderIdRepl.hasExplainCodeRepl.hasGenerateCodeRepl.hostedUrlRepl.hostedUrlDevRepl.hostedUrlDottyRepl.hostedUrlNoCustomRepl.iconUrlRepl.idRepl.imageUrlRepl.inviteUrlRepl.isAlwaysOnRepl.isBoostedRepl.isModelSolutionRepl.isModelSolutionForkRepl.isOwnerRepl.isPrivateRepl.isProjectRepl.isProjectForkRepl.isRenamedRepl.isStarredRepl.isTutorialRepl.langRepl.languageRepl.lastPublishedAtRepl.layoutStateRepl.likeCountRepl.markdownDescriptionRepl.multiplayerInvitesRepl.multiplayersRepl.nixedLanguageRepl.originRepl.ownerRepl.publicForkCountRepl.publishedAsRepl.replViewSettingsRepl.rootOriginReplUrlRepl.runCountRepl.slugRepl.tagsRepl.templateRepl.templateCategoryRepl.templateInfoRepl.templateLabelRepl.terminalUrlRepl.timeCreatedRepl.timeUpdatedRepl.titleRepl.urlRepl.wasPostedRepl.wasPublishedRepl.workspaceCta
- Comments