Code Monkey home page Code Monkey logo

randominette's Introduction

randominette πŸ”Œ

"Push your work my little piscinner" - Drop, probably.

Purpose

The purpose of this project is to create a python script that uses 42's API to return a random students login and location in the selected campus and cluster.

Usage

Running the script with no Command Line Arguments will retrieve you a user from 42 Lisboa's campus at Cluster 1 that is currently active. Alternativelly, if you'd like to select a specific campus or cluster you can run

randominette -s

Flags

Flag Use
-s Will allow you to specify a cluster and a campus
-r Will give you a whole row of victims

Requirements

Besides those defined in the requirements.txt file, you must have set the following two environment variables:

Variable Expansion
42-UID The UID provided by 42's platform
42-SECRET The Secret token provided by 42's platform

If you're having trouble a .env file should do the trick.

Resources

Since we're all (the three of us) new to Python🐍, here are some helpful resources:

Subject Link
Python for C Programmers CS50 40-minute semminar to learn the basics of Python for those proficient in C.
Virtual Environments Documentation and Youtube tutorial.
Requests Library We access the API via HTTP requests. There is a library that makes it very "user-friendly".
Decouple Library We store our tokens in a .env file so that we don't share them in our code. That is done with the Decouple library.
42's API We can access all loads of 42 stuff via its API.
OAUTH2 42's API uses OAUTH2 for authentication. You can learn about OAUTH2 here and about its specific implementation in 42's API here.

randominette's People

Contributors

dutesier avatar mlanca-c avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.