Awesome_Python_Scripts icon indicating copy to clipboard operation
Awesome_Python_Scripts copied to clipboard

Add API Scripts

Open prathimacode-hub opened this issue 4 years ago • 17 comments
trafficstars

This issue is specifically created for those who have basic programming knowledge in python and want to explore on API scripts on python

This repository would have application programming interfacing (API) scripts which would help in performing operations programmatically and deploy projects as apps. Add basic and advance API scripts in 'APIScripts' folder.

Repository : APIScripts Level : Easy and Medium

  • Do check if the code you want to contribute is available in this repository
  • If you find any issues that you are willing to contribute, you can comment on that issue and how you would make things work to get it assigned.
  • If you want to work on your own issue, check through README if it perfectly fits this repo motto
  • Raise a new issue, discuss about the project you are contribute, kindly wait until the issue is assigned to you.
  • You can get started working once it's assigned and make sure it works properly before you add the project.
  • Add your code to 'APIScripts' repository using the contribution guidelines and template mentioned
  • Create a Pull Request and be patient
  • We will review your code and if all works perfectly fine, PR will be merged.
  • If anything else needed from you, we will get back with the response
  • Make good PR and clean code.

Any queries, drop me a private message or just mention me over here!. I'll be happy to support and mentor you. Best of luck everyone ❤️

Happy Contribution!

prathimacode-hub avatar May 29 '21 08:05 prathimacode-hub

Hello, I going to contribute a python api for Solar System Open Data. This api displays our solar system's planet information.

mkhmirza avatar May 29 '21 17:05 mkhmirza

Wow, sounds interesting. Go ahead. Kindly follow the template mentioned in contributing guidelines to avoid merge conflicts. All the best @mkhmirza

prathimacode-hub avatar May 29 '21 17:05 prathimacode-hub

Hello, I have a couple of APIs I could contribute. They're already in a GitHub repo of my own, so I don't know if you still want them? If so, I would be happy to contribute them. My two favorites are one that lists earthquakes in Oregon and Pennsylvania (two states where my family lives) in the past week and another that queries a thesaurus; this one features a simple GUI.

RandallWert avatar May 31 '21 05:05 RandallWert

Oh, that's great. Sounds interesting. Yeah, you are welcome to contribute. Being in a repo of your own, doesn't matter. This repo is created to encourage open source. Looking forward to your contributions. @RandallWert

prathimacode-hub avatar May 31 '21 06:05 prathimacode-hub

OK, great. But I am a little confused about this line: "Add your code to 'APIScripts' repository using the contribution guidelines and template mentioned." How exactly do I add to the repository? And where is the template?

Sorry for these beginner questions.

RandallWert avatar May 31 '21 06:05 RandallWert

'APIScripts' is a folder name inside Awesome_Python_Scripts. And the project you are contributing should be in that concerned folder. To get your understanding better : Your project should be in "https://github.com/prathimacode-hub/Awesome_Python_Scripts/APIScripts" repository.

Template is given inside CONTRIBUTING_GUIDELINES.md This will help you get the information of how file names and folder name should look like. (For Ex: If hello world program is added. Folder name should be "HelloWorld" and "Hello_World.py"

README.md should be included as well along with program file. README should be showing up clearing understanding of what project is about, how it works etc. Any requirements or libaries needed it can be added up in Requirements.txt file. Also add up your output screenshot in README.md

Nope, it's good you had asked. Hope this cleared your doubts. Anymore queries, feel free to ask. Good to see your initiation to contribute. @RandallWert

prathimacode-hub avatar May 31 '21 06:05 prathimacode-hub

Thanks so much for the detailed answer and encouragement! I'll give it a try.

RandallWert avatar May 31 '21 13:05 RandallWert

Sure, go ahead @RandallWert

prathimacode-hub avatar May 31 '21 13:05 prathimacode-hub

Is it possible to create the README.md directly on GitHub?

RandallWert avatar May 31 '21 15:05 RandallWert

Yes, it is possible. While creating a file, all you have to is write README.md as filename and it's automatically created. @RandallWert

prathimacode-hub avatar May 31 '21 16:05 prathimacode-hub

OK, I'm still confused. Do I create the folder on GitHub somehow, or on my own machine? I haven't been able to create it on GitHub. I can upload individual files, but I can't upload an entire folder.

Putting it differently, I got as far as creating a branch, but I am having trouble committing my new folder to that branch.

RandallWert avatar May 31 '21 17:05 RandallWert

You upload individual files in a folder, say it a file_name.py To create a folder, Go to Add File Option. In that select, Create a New File Now a blank page is open. At the space of writing your file name, give your folder name and add a / Then you can add a blank README.md file so that the folder name given above is set. Finally, you can add your relevant program script .py file and fill up your README.md file created earlier.

Hope, it's clear. @RandallWert

prathimacode-hub avatar May 31 '21 17:05 prathimacode-hub

OK, now it might have worked. I'll try to do the pull request next.

RandallWert avatar May 31 '21 17:05 RandallWert

Your PR is merged successfully. Congrats. 🎉@RandallWert

prathimacode-hub avatar May 31 '21 19:05 prathimacode-hub

Yay!!! :-)

RandallWert avatar May 31 '21 21:05 RandallWert

@prathimacode-hub I'd like to add a minimal API build with Flask and use Json file as Database.

rivo2302 avatar Oct 21 '21 13:10 rivo2302

What's the project name? @rivo2302

prathimacode-hub avatar Oct 21 '21 13:10 prathimacode-hub