Purpose:
I want to create a web page within a django app where support staff can upload a .realm file and have the web application pull the user and figure out what information in the .realm is missing on the site.
Question:
Is there a way to open, read and/or manipulate .realm files with Python? If not, what are my options for converting it to something else like SQLite? Would I need to create some way for the support staff to convert the file before they upload it?
Is there a way to open, read and/or manipulate .realm files with python?
Realm does not currently have a Python SDK.
If not what are my options for converting it to something else like a sqlite?
To access data from a Realm file on the server side of a web application, your best bet at the present point of time would be to use Realm's Node.js SDK. Alternatively, you could use a client-side app using one of Realm's other SDKs (Objective-C, Swift, Android, .NET, etc.) to extract the data in question and covert it to a format that your web application can consume.
Related
I need to convert an excel sheet that is shared between couple of users and they do insert/update on it to a more DB/web-based application. What would be the easiest route to do that?
If I understand properly, What you want achieve is to switch from Excel file to web/based application.
you have to create a SQL (Postgresql, Mysql...) database that represent the data structure of the excel file.
Create REST API for web application
Create your web interfaces in order to perform input data using html, css and javascript.
To achieve this, in python you have a lot of web frameworks that simplify your work. following some of the most popular:
Django https://www.djangoproject.com/start/
Flask https://flask.palletsprojects.com/en/2.0.x/
Pyramid https://trypyramid.com/
Or maybe take a look of this tool, Streamlit https://streamlit.io/
I'm giving myself a project to better learn these languages which I already know a lot of it's just syncing them together I need to get better with. This project is a pretty basic "SIM" game, generate some animals into your profile with login/logout. So far I've got the website aspect with HTML/CSS done and functioning with all the pages I currently need all of which is local host on my desktop. Now I'm moving on to working with Python and possibly some PHP aspects into this to get the login/logout and generate a new animal into your account.
Everything I've done with python so far has been done in IDEL, I'm wondering how to link my python document to my HTML document. Like you would CSS? Or is that not possible if not then how do I connect the two to have python interact with the HTML/CSS that has been created? I'm guessing to need MySQL for a database setup but seeing how much I can get as a simple local host without hosting online?
If you want to setup a localhost with PHP and MYSQL I can recommend XAMP (https://www.apachefriends.org/). In order for your webapp to talk to your Python scripts you will either need to use FLASK or Django to create a python webserver, or use PHP to run python scripts. Either way, you will need to make AJAX requests to an API to get this done.
Edit: Forgot to mention this, but you will need JavaScript in order to do this
I have a project that is to collect posts from several second hand vehicle websites using BeautifulSoup and then store them in a database. Also my client requested to build this functionality on top of some content management system he is familiar or semi-familiar with like wordpress.
Can this be done using wordpress without making a big mess out of it? If not how would you suggest to structure my project and what cms to use?
Wordpress seems to support only mySQL and MariaDB, according to their site: https://codex.wordpress.org/Using_Alternative_Databases. Those seem to be your only database-tech options if you want to maintain Wordpress support.
From there, it's up to whatever is easier for your python to access, to be honest.
I am in the middle of my personal website development and I am using python to create a "Comment section" which my visitors could leave comments at there in public (which means, everybody can see it, so don't worry about the user name registration things). I already set up the sql database to store those data but only thing I haven't figured out yet was how to get the user input (their comments) from the browser. So, is there any modules in python could do that? (Like, the "Charfield" things in django, but unfortunately I don't use django)
For that you would need a web framework like Bottle or Flask. Bottle is a simple WSGI based web framework for Python.
Using either of these you may write simple REST based APIs, one for set and other for get. The "set" one could accept data from your client side and store it on your database where as your "get" api should return the data by reading it from your DB.
Hope it helps.
Hi I want some help in building a Phone book application on python and put it on google app engine. I am running a huge db of 2 million user lists and their contacts in phonebook. I want to upload all that data from my servers directly onto the google servers and then use a UI to retrieve the phone book contacts of each user based on his name.
I am using MS SQL sever 2005 as my DB.
Please help in putting together this application.
Your inputs are much appreciated.
For building your UI, AppEngine has it's own web framework called webapp that is pretty easy to get working. I've also had a good experience using the Jinja2 templating engine, which you can include in your source, or package as a zip file (example shows Django, you can do the same type of thing for Jinja).
As for loading all of your data into the DataStore, you should take a look at the bulk uploader documentation.
I think you're going to need to be more specific as to what problem you're having. As far as bulk loading goes, there's lots of bulkloader documentation around; or are you asking about model design? If so, we need to know more about how you plan to search for users. Do you need partial string matches? Sorting? Fuzzy matching?