Develop Raspberry apps from windows - python

Is it possible to open files from a Raspberry pi in windows for editing (using for example notepad++)?
I am currently using the built in python IDE in Raspbian but i feel that it would speed up the development process if i could use a windows IDE for development. I have also tried using a git repo to share files between the PI and Windows but it is a bit cumbersome to.
Or does anyone have any other ideas about workflow between Windows and Raspberry?

You can run a SAMBA server on your Raspberry Pi, set your python project folder as a network disk. Then you can use any windows IDE you like, just open the file which is on the network disk.
Currently I am using VS2015 + Python Tools for Visual Studio for remote debugging purpose.

Sure. I go through many ways and I found one of the best way is using WinSCP.
It's very easy for you to edit and update file with notepad++ right in the Windows.

Why not just set up a VM on your windows machine with rasbian running? Something like this will get you started: http://www.makeuseof.com/tag/emulate-raspberry-pi-pc/
Otherwise - set up a network share between the two, edit files on your windows computer, & run from the pi.

Related

Ways to debug python code for RPi on VSCode?

I am currently developing an automation project using python in VSCode to be run on a Raspberry Pi. I am interfacing sensors for my data collection which requires libraries and extensions from raspberry pi, as well as some RPi dedicated libraries etc. With that, I would need to develop the program on RPi itself if I would want to debug it.
I am fairly new to VSCode and RPi automation projects in general, I was wondering if there are tools or extensions available so that I could somehow debug my python code without the need of running it on RPi? Like locally running my scripts on my computer before deploying it on actual hardware? I thought of just commenting RPi dedicated parts of my code which I find tedious, but I wonder if there are some VSCode extensions available that could directly interpret my RPi dedicated code so I could easily debug it as it is.

Can I deploy TKinter apps to MacOS?

I want to develop a Windows/macOS app on my Windows machine, I aim to upload the executable file and upload it on the internet so that people with macOS can run it just like on windows.
Is that possible?
I tried searching on this topic on the internet and didn't get satisfying results.
I know that iOS prohibits installation of apps from unknown sources unless you use your phone for development or jailbreak the phone. So the question was actually if the same is applied to macOS. I know I can build apps and make executable files, one for each platform. I searched the web for a long time until I found the answer, that yes, I can just make a script and run it on macOS without any complications.

How to hide / obfuscate code in Pycharm effectively?

I want to work on a Windows machine with some privacy / intellectual property related python code within Pycharm.
I want to avoid that somebody else later on can see my code on the local file system (or can recover / undelete it from the SSD based file system). Therefore I am looking for a solution that keeps my python script(s) encrypted on the local file system but editable / usable within Pycharm.
I thought of creating a RAM disk or installing a virtual machine on the Windows computer. Unfortunately, I do not have admin rights on that computer so I cannot install any software nor create virtual machines.
Additionally I can use an USB stick in read only mode on that machine, but cannot write files back to that USB drive.
I am looking for a solution where I am still able to edit a Python script on that computer within Pycharm, but this file should not be persisted to the file system. Once I have finished my work, the Python script should be written back to the file system in an encrypted way.
Use an online Idle and save your code online.
If you really want pycharm I would upload the code and delete it from the pc and download again whenever I needed it.
You could work 'in the cloud' where you have an AWS instance that you checkout / clone /develop your work and you just use your computer essentially like a thin client for connecting to your remote instance.

Is there a way to emulate I2C with Ubuntu on laptop?

folks.
I am making a program with Python on RaspberryPi2 that installed I2C modules. But I frustrated to write codes using I2C on RaspberryPi, because it is very slow and it cannot use my favorite editor Sublime Text2. I think if I will be able to emulate I2C on my Macbook Air or Ubuntu laptop, I can write codes faster and efficient.
Could you kindly advise me a way to realize my wish?
What you really want is a way to deploy to the raspberry pi so you can develop locally. There are a number of different solutions(Git push/ pull, scp, ftp etc..) You should look into FabricLink api. This allows you to seamlessly add deployment to your cycle.

Is pynfs stable to run on windows server 2008?

I need to connect from a windows server 2008 in a secure network to an ubuntu box and write and read files easily from python code. I want to avoid samba or ftp, so I am considering NFS and my question is, if pynfs works stable on windows (if at all, or does it work on linux only?)
I found the source and some forks on github
I am also unsure about the state of the project, it is not in pypi, it cannot be installed over pip, so I wonder if this is a maintaned and updated project with a future. It would be great to hear from someone who has some production experience with it, I am using python 2.7
I would prefer pynfs had some modern infrastructure around it.
I went with samba this time.
pynfs is a test suite and not ment to run as nfs server in production

Categories

Resources