Yowsup - Whatsapp Python Library - python

I am absolutely new to Python and the Rasberry Pi. I had a look at the Yowsup library to be able to send a Whatsapp message with my Rasberry Pi.
By using yowsup-cli I can send a message etc.
My problem.... I dont understand the sample programs at all. From a .NET background I would think that one would create an Object and then perhaps do something like Object.SendMessage("Number", "Message")
The examples seems to be much more complicated. I truly dont understand. Have someone written a simple Python Script before doing what I want to do? Just as an example so that I understand more clearly? I have done a lot of reading. I guess I am stuck with .NET in my head.
Thank you!
Jaco

Related

How can you higher your Ping with the help of Python

My friend asked me as a Joke if I can make a "programm" that will higher your ping.
So that you will have a little delay.
The Problem is that i want to this in python cause i want to learn it.
And I have less to no experience in python.
Everybody that had a clue how python works wanted me to reset the whole program to do that (like System.Threading.Thread.Sleep(1000)). But when I told them that I want to reset or delay the Internet on my computer so if I send a package to the server the answer needs +5sec to get back they had no Idea.
I have no code that could help you help me cause I only have the GUI and some irrelevant and independet other features ready.
So if anyone can show me how this in python could work or give me at least an idea how I could try it, it would be awesome.
Thanks for reading and maybe even helping :D
Leo

Raspberry pi : Make RPI code Read and Write Protected

1) I am working on a project on Raspberry pi. Once I finished my all stuff, I want my SD card/code to be properly locked. so that no one is able to read and write code just like we locked other small microcontrollers(AVR/PIC).Please help to do that.
2) I am generating logs in my code using logging library, will I be able to write logs if my SD card/code is write/read protected.
My objective is no one be able to steal my code or make modifications to the code. What should I do to protect my code from stealing and make changes into the code?
Someone correct me on this if I'm wrong but python being interpreted in most common implementations, I don't believe you're going to be able to make it unreadable.
Assuming that you are running linux on your raspberry pi, you might be able to get the tiniest bit of security using chmod 100 on it, but I do not know enough to confirm or deny this for sure.

Xchat2: Intercept submitted lines from text box before sending to server

I am attempting to write a script in python and was wondering if there is a method to delay a line typed into the textbox/inputbox to enable some processing before it is sent to the server.
I would like to utilize python as I have already solved the issue of processing, just not the issue with the interception.
Thanks in advance.
I'm not pretty sure, but after seeing the xchat API for python I saw some functions that maybe could help you. Anyway, the best you can do is check out the documentacion for yourself here http://xchat.org/docs/xchatpython.html#head-baa362bb6aeeed1851452bd2ecc9253317db1e64.
Good luck!

What do I do to use this pyportmidi (pypm) as a library in python?

This is apparently the source code here (though I'm not sure):
https://bitbucket.org/pygame/pygame/src/01b2cb16dc17/src/pypm.pyx
I'm new to programming and trying to use python as an audio engine. This seemed like pretty much the only way to send midi messages from python.
I really have no idea what to do with the information provided at the link. Please help.
Pygame can send midi messages: http://www.pygame.org/docs/ref/midi.html
And a demo in the examples folder: http://www.pygame.org/docs/ref/examples.html#pygame.examples.midi.main
I believe you linked the source code of pygame itself, and not a demo.

Instant messenger streaming with libVLC python wrapper

I'm trying to develop an instant messenger client that supports video streaming. I am working with the libVLC wrapper for Python. Most basic functions of an IM client are already there, my problem comes with the video streaming. I've been able to do basic tests like streaming a video and playing it in a tkinter form with my own code. But when it comes to streaming to many users, and recieving many streams from other users I'm completely lost. I'd appreciate any help you can give me, maybe this is not the right way to do it and you can point me out the direction I should take, everything helps as I am not a very experienced programmer. Thanks in advance.
I don't think it will be easy.
http://wiki.videolan.org/VideoLan_VideoConference#See_also might give you some clues as to directions to try...

Categories

Resources