Live data from Hacker News

Anvil: full stack web apps built only with Python

anvil.works

51–60 of 207 posts

Re: Anvil: full stack web apps built only with Python

#52
post #5
post #3

Anybody know of any self-hosted alternatives to something like this?

It's an "enterprise feature" https://anvil.works/features On-site installation For when you need to keep sensitive data or apps inside your firewall. Anvil on-site installations allow you to develop and deploy your apps entirely in-house.

I was thinking more in terms of ameliorating the risk of building a successful small business on this and them going out of business after gorging themselves on VC money and having a heart attack.

Re: Anvil: full stack web apps built only with Python

#53

Can the data be replicated to our own pg database from the built-in database? Close to real-time?

Absolutely - please ask about our Enterprise plans ;)

That said, even with the standard plans you can plug into your own Postgres database from server code (just `import psycopg` - it's only Python, after all). And using the Uplink, you can access Anvil's database from your code anywhere on the internet, with the same API as Anvil server code.

Re: Anvil: full stack web apps built only with Python

#54

Can the data be replicated to our own pg database from the built-in database? Close to real-time?

I'm interested in this

Also things like bulk uploads to a table for migration, would I have to write a service for this? I have an app I would like to migrate that has a sqlite table with static data in it, that I could see using this. I suppose I could use the server connector, but what other tools does this have?

Re: Anvil: full stack web apps built only with Python

#55

I only watched the video, so it is a bit early to judge, but I wonder: 1. Why put that much effort in explaining it takes only 6 minutes in setting up a web app? Anyone who has done any serious web app knows how quickly you can set up a simple app really does not matter much for an app even of moderate size, let alone big ones? 2. Why yet another attempt to abstract away everything and using one language (python) onl…

These tools are for simple CRUD apps for people who aren't necessarily strong developers to begin with but need to put together something anyway. That's why the demos focus on speed and only ever show the tiniest of applications.

Re: Anvil: full stack web apps built only with Python

#56

Earlier quoted context omitted.

Interesting. I've been looking for alternatives to React or Angular for some time. I've enjoyed playing with Elm recently. My preferred back end is Python Tornado RethinkDB, so browser GUIs in Python is appealing. I looked at https://github.com/skulpt and it looks like the compile to JS step happens on the client side, unlike Elm. What's performance like?

Strictly speaking, that compilation happens in JS, not necessarily client-side ;) (Right now, it does run in the browser, but we'll be moving it to the back-end soon to improve performance. For now it's good enough.)

Can you elaborate on this?

From the Skulpt website: "Skulpt is an entirely in-browser implementation of Python."

It sounds like you implemented python in JS, so there is no compilation to JS. The application code is always python and is evaluated on the client, no?

If you move it to the back end, would that not be something like Trascrypt?

Re: Anvil: full stack web apps built only with Python

#57

I only watched the video, so it is a bit early to judge, but I wonder: 1. Why put that much effort in explaining it takes only 6 minutes in setting up a web app? Anyone who has done any serious web app knows how quickly you can set up a simple app really does not matter much for an app even of moderate size, let alone big ones? 2. Why yet another attempt to abstract away everything and using one language (python) onl…

These tools are for simple CRUD apps for people who aren't necessarily strong developers to begin with but need to put together something anyway. That's why the demos focus on speed and only ever show the tiniest of applications.

I'd dispute that! There are much larger applications built on Anvil; it's just hard to build a two-week project for a demo video, and harder still to build a two-month one ;)

We're starting to post some larger examples (check out our "download portal" example at https://anvil.works/learn#examples - I'm also working on a video series building a SaaS app over the course of a few hours). But the biggest apps are, of course, our customers', and we can't really publish them as examples.

Re: Anvil: full stack web apps built only with Python

#58
So I've been working on a python flask web app in part time/spare time for my business for almost two years (in addition to running a company doing several million USD in sales over that time without the app.) In that two years, I've tracked my programming time with wakatime and I'm at >1000hrs now, more than 25 full-time 40hr work weeks of actual coding time. I'm running the app on a dedicated GPU server, as part of the apps function is to evaluate 3D CAD files. Time spent managing and running a dedicated server is not even counted in the 1000hrs. Of course, I've also had to learn to be a Postgres database admin and dozens of support libraries. And, certainly must have at least some javascript/jquery. Libraries like flask-admin and flask-security are great. But, when you need them customized for production, it takes weeks of time to dig in and actually learn how they are built from the inside out. Need to subclass and override much of it to finally have something usable. I literally just spent about a month hacking on flask-security to get the login/email-confirmations/email templates/argon2-hashing/2-factor-auth the way I need it. Then, I watch this video the guy replicates most of the functionality in six minutes. Nice work, definitely looks like heading in right direction.

Re: Anvil: full stack web apps built only with Python

#59
post #7

Earlier quoted context omitted.

(founder here) Urk? Firefox is an officially supported platform for the editor. What didn't work, and what version of FF are you using? Once you've written an app, it should work in everything since IE11.

(another founder here!) We've now been in touch by email about this bug, and we'll make sure a fix is pushed ASAP!

Update: Turned out to be an old version of Firefox. Upgrading made the error go away.

Re: Anvil: full stack web apps built only with Python

#60

Earlier quoted context omitted.

Strictly speaking, that compilation happens in JS, not necessarily client-side ;) (Right now, it does run in the browser, but we'll be moving it to the back-end soon to improve performance. For now it's good enough.)

Can you elaborate on this? From the Skulpt website: "Skulpt is an entirely in-browser implementation of Python." It sounds like you implemented python in JS, so there is no compilation to JS. The application code is always python and is evaluated on the client, no? If you move it to the back end, would that not be something like Trascrypt?

Check out my talk on the Skulpt compiler from PyCon US this summer: https://anvil.works/blog/pycon-talk

Skulpt has a separate compiler stage that compiles Python to JS, and a runtime library. There's no need to eval() that code in the same JS VM that compiled it, so it's totally feasible to ship the JS to the client and run it there.

Post reply on HN