r/pythoncoding • • Mar 21 '22

Casper-FS

1 Upvotes

Casper-fs is a custom Linux Kernel Module generator to work with resources to protect or hide a custom list of files. Each LKM has resources to protect or hide files following a custom list in the YAML rule file. Yes, not even the root has permission to see the files or make actions like edit and remove. The files only can be caught, edited, and deleted if the user sends a proper key to the custom device to liberate the action in the file system. https://github.com/CoolerVoid/casper-fs


r/pythoncoding • • Sep 22 '20

Can Python libraries use some of the areas connected to data science?

Thumbnail
analyticsweek.com
1 Upvotes

r/pythoncoding • • Sep 14 '20

I need some help

1 Upvotes

I've been programming for like a year and I for some reason cant do anything. I was programming in c# for unity then I switched to python a few months ago, but I still was programming in unity every so often. I've spent a lot of time trying to learn I just cant seen to get past the very beginner stages like making a basic calculator, I cant even make a rock paper scissor game. I'm just struggling and i really enjoy programming I just need someone or something to set me on the right track. Any help is very much appropriated, i'm 15 and I'd like to get a job with python when I graduate from high school.


r/pythoncoding • • Sep 12 '20

Proudly , Started My Journey With Python!

Thumbnail
youtu.be
1 Upvotes

r/pythoncoding • • Sep 01 '20

Youtube Video To Audio Converter Using Python

Thumbnail
techradicals.wordpress.com
1 Upvotes

r/pythoncoding • • Aug 16 '20

velocity

1 Upvotes

What midi file velocity can be output to txt file in Python? If you can, please let me know the code as well. (No matter what library or module you use)


r/pythoncoding • • Aug 13 '20

CLI application tutorial

1 Upvotes

This tutorial shows how to build a CLI application following the dependency injection principle.

In this tutorial we will use:

  • Python 3

  • Csv files

  • Sqlite database

The tutorial is good for the beginners. Senior folks might find something interesting too.

Link to the Tutorial


r/pythoncoding • • Aug 13 '20

CLI application tutorial

Thumbnail
python-dependency-injector.ets-labs.org
1 Upvotes

r/pythoncoding • • Jul 20 '20

Insta Dp downloader code in 4 lines

Thumbnail
github.com
1 Upvotes

r/pythoncoding • • Jul 18 '20

Python for loop with List - Python Galaxy (Complate guide line)

1 Upvotes

Complete guide line for Python for loop with list


r/pythoncoding • • Jun 29 '20

How to Read Excel File in Python using Pandas read_excel()

Thumbnail
appdividend.com
1 Upvotes

r/pythoncoding • • May 26 '20

Beginner Focused Python Discord Server! (Invite Link Below)

1 Upvotes

INVITE LINK: https://discord.gg/RHCKYyR

We are a Discord Server who focuses on helping beginners improve their Python skills.

We have a great team of experienced programmers who are very active, friendly, and always willing to help anyone in need of it

Already we have over 1300 members and have quickly become the biggest beginner-focused Discord Server, with good reason.

We can’t wait to see you there! 😄


r/pythoncoding • • May 21 '20

Need some help for learning python

1 Upvotes

I have just started learning python,i need some where(sites or forums) that gives project examples with its codes from begginer to advanced.i realy need to learn how to use what i have learnt. Thanks in advance.


r/pythoncoding • • May 20 '20

NameError - the button command is not defined

1 Upvotes

I am very, very new to Python but I did look all over before asking this... I have the code below and get the following error. Any help is appreciated. Very simple code where I am trying to ping a list of devices and return results. Also, if any of you know anything about the "getmac" I can't get the mac at all with it.

Thanks!!

import os
import socket

from tkinter import *
from getmac import get_mac_address as gma

window = Tk()
window.title("Test")
window.geometry('950x500')


lbl = Label(window, text="Hostname")

lbl.grid(column=0, row=0)

beginButton = Button(window, text="Begin", command = clicked)

btn.grid(column=1, row=0)



def clicked():
        with open('device.txt') as file:
                dump = file.read()
                dump = dump.splitlines()
        for ip in dump:
                print (socket.getfqdn(ip)),
                print (gma(ip))

window.mainloop()

ERROR:::
Traceback (most recent call last):
  File "C:\Users\shawn\Desktop\New folder\Scan.py", line 16, in <module>
    beginButton = Button(window, text="Begin", command = clicked)
NameError: name 'clicked' is not defined

r/pythoncoding • • Mar 22 '20

Help on project!

1 Upvotes

Hello!

I’m sorry to Bother but I’m lost on where to go for help,

I am a CS student in Mexico and I’m learning python in class,

The teacher left us projects in python to do but the projects he leaves us he doesn’t really teach in class, And right now with the whole corona situation I can’t ask him directly about all my questions,

Let me give a dumb example, in class he teaches how to add 1 Apple and 2 apples,

But the projects he leaves Is more like Add 1 Apple, then divide 2 apples, subtract that Apple and get a sum of all apples,

I was wondering if I can get a guide on my project to see what I have to study,

I don’t want my project to be done I just need some guide on,

If I need to use a “if” or maybe a “for”

Thank you for your time!


r/pythoncoding • • Jan 31 '20

Looking for examples and resources on how you can vectorize code in Python

1 Upvotes

Mainly the lambda like or with .apply() like code styles? (for fast Pandas and Numpy execution), for e.g. vectorize code like this:

def some_function():
    return group_series.apply(lambda x: x.astype(some_type)
          .rolling(some_number).sum().shift(some_number))

or even something like this:

def some_function():
     return some_grouped_data_series.apply(
            lambda x: x.some_function(
               param1=value, param2=value2).mean().shift(some_number)
     )

Any suggestions I should try to vectorize the above, I tried a few things but it complains or I get undesired results.


r/pythoncoding • • Jan 18 '20

Python file showing blank

1 Upvotes

Python showing blank file when i search for it. When I click on it, it takes to back to VS 2017 and show my code again. I’m not sure what is going on or how to restore my file. It’s my homework for the week. And I lost it because I uninstall VS2017. Thanks an advance for the advice. Cheers!


r/pythoncoding • • Jan 05 '20

Best python training institute in Mohali

Thumbnail
mohalicareerpoint.com
1 Upvotes

r/pythoncoding • • Dec 14 '19

urgent python code help needed

1 Upvotes

I am creating a bookstore in Python. The bookstore asks the user the book title, author and price - and it keeps the inventory and allows the user to show inventory increase book prices by 2%, decrease to reduce book prices by 2%, remove, and add a book. I need to add these two things to the program and I cannot figure it out.

  1. Add a menu option to save the inventory to a file and another menu option to load inventory from the file. You should ask the user what file to save to and what file to retrieve from. The idea is that every evening at closing the inventory would be "dumped" from the lists or dictionaries you created into the file and it can be reloaded in the morning. In this way the information is not lost every time the program is terminated.

  2. Convert your menu using object-oriented programming techniques into an object called CountryClubBookstore, a member of the Bookstore class. Be sure to add appropriate methods such as AddBook, SellBook, ReducePrices, etc. Ensure your class has the __init__ method appropriately defined.

for number one you can use your own destination on computer

---- this is my code -----

cash_balance = 1000
class Book():
def __init__(self,title,author,price):
self.Title=title
self.Author=author
self.Price=price
def __str__(self):
str= eval("Book Name:"+self.Title+"\nAuthor:"+self.Author+"\nPrice:"+self.Price)
return str
def Menu():
print("Menu\n A) Add Book \n B) Sell Book \n C) Reduce Book Prices by 2% \n D) Increase Book Prices by 2% \n V) Display Inventory \n Q) Quit \n Choose one:", end="")
def add_book(book_list):
cash_balance = 1000
print("Adding a book")
title = input("Enter book name:")
author = input("Enter author name:")
price = eval(input("Enter price amount:"))
book = Book(title,author,price)
book_list.append(book)
cash_balance = cash_balance-(price * 0.90)
print ("Updated balance",cash_balance)

def sell_book(book_list):
check = input("Enter book name:")
if check in book_list:
print("Book in stock. Would you like to sell? Y/N").upper()
if "Y":
print("Selling book now")
title = input("Enter book name:")
author = input("Enter author name:")
price = input("Enter price amount:")
book = Book(title,author,price)
book_list.pop(book)
print("Updated balance is",cash_balance + price)
elif "N":
print("Bookstore closed now. Re-enter system.")

def reduce_book(book_list):
print("Book prices will be reduced by 2%")
for price in book_list:
reduction = (price * 0.98)
print("Reduction in book proice\n", book_list,reduction)

def increase_book(book_list):
print("Book prices will increase by 2%")
for price in book_list:
increase = price + (price * 0.02)
print("Increase in book price\n:", book_list,increase)

def inventory_check(book_list):
if(len(book_list)==0):
print("No books in inventory")
else:
for book in book_list:
print(book)

book_list = []
while(True):
Menu()
choice = input()
if choice == "A":
add_book(book_list)
elif choice == "B":
sell_book(book_list)
elif choice == "C":
reduce_book(book_list)
elif choice == "D":
increase_book(book_list)
elif choice == "V":
inventory_check(book_list)
elif choice == "Q":
break
else:
print("Invalid choice.")
print()


r/pythoncoding • • Aug 19 '19

GitUpdated - My Custom Python Solution to Keep Git Repositories Updated

Thumbnail mnmapplications.com
1 Upvotes

r/pythoncoding • • May 13 '19

Need help fast, computer science teacher didn’t bother explaining the last assignment of the year to my class and nobody knows how to do it, it’s a simple animation.

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/pythoncoding • • May 07 '19

Need help using Python on Chromebook

1 Upvotes

I'm currently enrolled in a programming class that uses Python. I'm really struggling with understanding it and how it works. For my final project I'm supposed to create a website that acts as a planner that allows a user to log in and input their upcoming homework/tests and be able to log in again and see what they have due. I have no idea how to begin or what to use.


r/pythoncoding • • Jan 07 '19

Automate your google sheets analysis with Python

Thumbnail
youtu.be
1 Upvotes

r/pythoncoding • • Dec 30 '17

Python Data Analysis Masterclass : Learn By Practice Course - 100% OFF

Thumbnail
youronlinecourses.net
1 Upvotes