Skip to content

Instantly share code, notes, and snippets.

View shreyanshu7101904's full-sized avatar
🌍
On Mars

Shreyanshu shankar shreyanshu7101904

🌍
On Mars
  • bangalore,India
View GitHub Profile
@shreyanshu7101904
shreyanshu7101904 / flask_server.py
Created July 4, 2021 10:17
flak server, html assignment
import csv
import os
import re
from flask import Flask, jsonify, request
app = Flask(__name__)
FILE = os.environ.get("FILE", "test_data_sample.csv")
#file settings.py
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'QuestionsPanel',
@shreyanshu7101904
shreyanshu7101904 / os_module.py
Created April 22, 2018 16:14
this file contains methods which can be used in python after importing os module
from os import *
def fun():
print(getuid()) #get user id
print(list(uname())) # get info about current operating system name,nodename,release,version,machine
if __name__ == "__main__" :
fun()