Share your repls and programming experiences

← Back to all posts
REPLAPI Module! 0.0.6v - ultimate poggers
JBloves27 (1881)

REPLAPI Module

(Version 0.0.6)

Made by @JBYT27 and @darkdarcool


About the module:

As you may have seen on our previous module, this is the next version (or next-next. or the next-next-next. lol). We have added some new commands to the module. We have also made the speed faster for a lot of them.(Check out the installation header below for how to get started with the module.)


Installation:

ManageCommand
pip$ pip install REPLAPI
poetry$ python -m poetry add REPLAPI
Repl.itSearch REPLAPI in the package tab and add it

What's new!

Well, for a lot of things in the module, including faster speeds for Avatars, Languages, Cycles, Full Names, and Bios!! We have also stopped using non-replit(external) json files for things that require it. Now we use replit json files. And we have made it so the module does not import a ton of modules whenever you run it!(by improving the modules directions!). If we are dumb and it doesen't work, please wait to use the module, or use version 0.0.3.

How to use the module

We have improved a bunch of the modules! Here is a small example using ALL of them!

  • replit_langs("username")
import REPLAPI as repl
my_favorite_lang = repl.replit_langs("myusername")
print("My favorite languages are " + my_favorite_lang[0] + ", " + my_favorite_lang[1] + ", " + my_favorite_lang[2] + "!")
  • replit_cycles("username")
import REPLAPI as repl
mycycles = repl.replit_cycles("myusername")
print("I have " + mycycles + " cycles!")
  • replit_avatar("username")
import REPLAPI as replit
myprofilepic = repl.replit_avatar("myusername")
print("My profile image is in here: " + my)
  • replit_bio("username")
import REPLAPI as replit
mybio = repl.replit_bio("myusername")
print("my bio on my replit profile is:\n" + mybio)
  • replit_name("username")
import REPLAPI as replit
myfullname = repl.replit_name("myusername")
print("My full name is " + myfullname)
  • replit_comment("username)
import REPLAPI as replit
mycomment = repl.replit_comment("myusername")
print("The top comment on my replit profile is " + mycomment + "!")

If you do replit_comments("myusername") you will get a long list of your comments on your replit profile until the load more button.

  • replit_post("username")
import REPLAPI as repl
mypost = repl.replit_post("myusername")
print("The top post on my replit profile is " + mypost + "!")

The same thing goes for posts, if you do replit_posts("username"), it will return all of the posts on your replit profile until the load more button!

✨ Special(experimental) Function! ✨

The special function is replit_langs("username"). It returns the user's most recently used coding languages in a list! It works like this:

import REPLAPI as repl
myfavs = replit_langs("myusername")
print("My most used coding languages are: " + myfavs[0] + ", " + myfavs[1] + ", and " + myfavs[2] + "!")

This function is experimental, we are just playing around with it and need YOUR feedback and issues!


Credits:

  • @RayhanADev ( for giving use the idea and helping us along the way! )
  • @IcynHackz ( for giving us a faster way of accesing data! )
  • @MarcusWeinberger ( for helping us for the overall quality of the module! )
  • Everyone that has left a pull request and issue on our git repo ( thanks you guy's so much! )

Contributing

If you wanna contribute, we will not invite you to the repl of this moudle(it's private), a we will not invite you to the github repo. If you wish to contribute, please leave and issure or a pull request on the github repo here. We will always(jk) try our best to read them! If you wish to complain(lol), leave it in the disscusion on the repo. Our discord server will also be linked at the end! ;)

Closing

So yea, that's the module! We worked hard on it, and we love your guy's contributions! Feel free to use the package whenever, and for anything.

KTHXBAI!!! (lolcode reference)

Discord

Comments
hotnewtop
IOP3 (854)

haha! Thanks for crediting me. This is so much faster. POggerss

Whippingdot (656)

Hey can I join this project? I am both of ur friends...!

P.S. Again, too lazy to try it out, but seems POG

JBloves27 (1881)

Hmmm, ill ask dark and we’ll discuss it. Thanks! @Whippingdot

Whippingdot (656)

dark already added me to the docs lul @JBloves27

darkdarcool (131)

@Whippingdot
yea just the docs! (but i'm conflicted on the actual repo, we have a very specific vision that's hard to understand)

Whippingdot (656)

PLEASE PLEASE PLEASE PLEASE I THOUGHT U WERE MY FRIEND PLEASE @darkdarcool

darkdarcool (131)

@Whippingdot
i am, but that doesn't give you any advantage over anyone else(and I haven't decided yet)

RayhanADev (2514)

LOL! You used wrapped mat1's API which then wraps the actual GraphQL,

Way to Go on Progress 🎉

I can't wait to see what ya'll do next with this :D

darkdarcool (131)

@JBloves27 @RayhanADev
thanks! (that's an awaited function for mat's, so we made it so you DON'T have to await it :) )

darkdarcool (131)

@RayhanADev
maybe consider joining the discord..........

RayhanADev (2514)

@darkdarcool nice, no more painful asyncs xD
and I actually don't get on Discord anymore, so sorry :(

darkdarcool (131)

@RayhanADev
i hate asyncio, but we handle that for you :) (also the discord thing's fine)

[deleted]

@JBloves27 Great module, but how does it work? Do you use selenium to make it work or do you simply wrap it around the main API?

JBloves27 (1881)

Thanks! Well, we wrap it around the main API (im pretty sure) @novaflippers

svensk007 (58)

@JBloves27 I'm trying to use this for a terminal type thing but it keeps saying "you didn't fill out the name parameter" when I have it set to an input [variable?]

JBloves27 (1881)

Have you filled out the parameter? Like an example would be this:

module.function("username")

There has to be a username inside the parentheses and there has to be quotations for the username. Did you do that? @svensk007

svensk007 (58)

@JBloves27 i created a variable for the username that takes user input called "user" and then I would do module.function(user)
print(user)

JBloves27 (1881)

You need to name the functions, like this: idk = module.function(user) and user needs to be defined. THEN you would print this: print(idk) @svensk007

JBloves27 (1881)

If that doesn't work, let me know! ;) @svensk007

svensk007 (58)

@JBloves27 user is defined by the users input though

JBloves27 (1881)

It is, but then it would just return the input, not the function value. You want to return the function value, not the input value. You return the value into the function, but then you need to name the function to return the function value @svensk007

svensk007 (58)

@JBloves27 I shared it to you so you can look at it

Bunnytoes (139)

does this do my languages of my last 3 codes?

JBloves27 (1881)

This does ur most common langs (im pretty sure) @Bunnytoes

darkdarcool (131)

@Bunnytoes
it does the last languages you used, 2 is latest, and 0 is the third latest

Bunnytoes (139)

@darkdarcool this is so cool! how does it know this?

darkdarcool (131)

@Bunnytoes
it looks at replit's json files. We find where the last languages are(there are 3 or less) in the json. We then take that data and take out some chars that we don't want. Then we put it in a list, separating them by their ','. Then we return that list you you!

JBloves27 (1881)

Noice explaining. Also, im not avail rn ;) @darkdarcool

IOP3 (854)

Oh yeah and also @JBloves27 and @darkdarcool, in the how to use the module header in the replit avatar section it should be:

import REPLAPI as replit
myprofilepic = repl.replit_avatar("myusername")
print("My profile image is in here: " + myprofilepic)

instead of

import REPLAPI as replit
myprofilepic = repl.replit_avatar("myusername")
print("My profile image is in here: " + my)

Just a small mistake. ;)

Whippingdot (656)

gud jub commenting on your own post @JBloves27