Repository navigation
Publishing ASPPY to PyPI — Friendly Reminder #20
Replies: 13 comments 23 replies
|
Jeffrey, I'm sorry for the delay. Apparently, I was not watching this repo... so I never got your discussion item/issues. I am not familiar with PyPI. I'll have a go with it. Thanks. I keep you posted. |
|
Done! https://pypi.org/project/asppy/0.1.1/ The five commands:
Zero to running app, from a bare pip install: asppy-new myapp
Every command also works as a module, which is handy in .bat files, systemd units and Docker CMD lines: python -m ASPPY 0.0.0.0 8080 www # same as: asppy 0.0.0.0 8080 www From a source checkout, python asppycli.py ... and python asppycheck.py ... keep working exactly as before. |
|
The PYPI idea was great Jeffrey, thanks. I may have overdone it though. Well, Claude did.... We added a guide, manuals, a sample site... But I can see why this PyPI thing works better, without the need to download the archive for each new development... even though that never bothered me. If this is going to bring new ASPPY users? I doubt so. For me that's not the idea behind ASPPY. Now that ASPPY is more or less a ASP/VBScript clone under IIS, I want to focus on ASPPY performance. Claude 5 gets ASPPY 20%-30% faster, I'm sure, especially when digging into the recently added code. |
|
ha! I just got QuickerSite to run at 70ms/pageload. On IIS: 116ms. Claude added connection pooling for ODBC-datasources, and discovered an issue with how a classic sha256-function in Classic ASP took 240ms in QuickerSite. Fixing both issues puts ASPPY-performance ahead of IIS, by 30%. This is promising. |
|
With every IIS-parity issue we fixed, Claude found at least 2 others. With every app I built with ASPPY in the past few weeks, Claude found at least 2 bugs in ASSPY. With every performance test Claude is able to fix, lazely load or cache yet something else in the ASPPY code... It's endless. And it's burning a lot of dollars. I don't care about a 200ms startup time, as ASPPY websites (and their Python processes) live eternally, at least as long as I don't restart the server, or kill the Python processes myself. |
|
For me the real benchmark is QuickerSite. ASPPY and IIS run QuickerSite equally fast. QuickerSite runs a 2MB codebase (packed with 116 large VBscript classes) on every pageload. I never got QuickerSite to run on Axon. That's why I started the ASPPY development in the first place ;) I knew that - IF I could get QuickerSite running on ASPPY - ASPPY would run 99% of all legacy Classic ASP/VBScript web apps out there, except for those running exotic databases. For ASPPY, SQLite is the way to go anyway. What really matters is things like connection pooling. It's done now for ODBC-driven (Access, SQL Server, PostgreSQL, etc) DBs in ASPPY. This makes a REAL difference that REALLY matters ;) |
|
Jeffrey, just added connection pooling for SQLite as well... for what it's worth. |
Update: Tried running PowerEasy CMS on ASPPYUpdate: I tried running PowerEasy CMS on ASPPY. It crashes at PowerEasy was a popular Chinese CMS back in the day. Nothing fancy, but it's a real-world app with ~500 files, ADO, MSXML, FSO, Application-level caching, and class-based templates. I'm sharing what I found in case it's useful. What I found1.
|
|
One more thing — a migration note on encoding, for whoever ports a non-English ASP project next. Both CMSes save every I ran the full conversion on a copy of PowerEasy today— it works. 385 files transcoded, homepage went from 42 mojibake runs to zero (
Two findings from the live run worth documenting:
Remaining edge cases: 2 of 385 files had GBK decode errors and need manual review; 132 static No feature request here — the source decoder is fine as-is. The one ask: could we add a 1-page "Migrating a legacy non-English ASP project to UTF-8" page to the bundled guide? I'll post the transcode script and the tested recipe right here in this discussion, so it's all yours to use wherever you see fit. |
|
Yet another relic steps out of the archive — BBSXP, one of the most celebrated Chinese bulletin-board systems of the twentieth century. As I noted above, PowerEasy and BBSXP share a great deal in their building blocks and their coding idiom. On my IIS 👉 http://localhost:8070/default.asp (admin / admin888) |
|
Attached is www_ZBlog.zip — I'd meant to hand it over later, but this one is special. What makes it special is that its official site is somehow still alive, even though the core codebase appears to have gone untouched for ages: https://www.zblogcn.com/zblogasp/ And remarkably, it's natively UTF-8 encoded — something quite rare for that era, which surely means it was retrofitted in a later update. And it strongly echoes the look and feel of early WordPress. |
|
Perfect Jeffrey, very challenging. I'm fixing one thing at a time. The private constant is done. De connection.properties collection as well (even though that was on our list of things not to worry about). There are still issues with Powereasy. I have not yet thrown zBlog into ASPPY. But I'm sure that will reveal yet another set of imparities. We're still facing dozens, I'm sure. I have also test-driven Snitz Forums. It was a popular forum software between 1998 and 2005. There again, a handful of fixes needed. We're nearing a point where every fix exposes yet another underlying bug, like today - I faced an infinite loop. Even the strongest AI models are breaking their necks - and my purse :) As such, it's much more fun to use the ASPPY pomptbuilders, and generate exciting new apps in pure Classic ASP/VBScript. That's so much fun. And it's fast and in case you use Chinese AI LLM, (nearly) free. I have even been generating dozens of fully working apps on ASPPY on my own local AI Lab at home, on a Fable-distilled version of Qwen 3.6. I use LM Studio on a game PC with 128 GB unified RAM. It's incredibly slow (4-5 tokens/second), but it works. I think that - when it comes to supporting legacy ASP-apps - it will be easier and cheaper to let AI rewrite those apps for use in ASPPY. That's gonna be much cheaper and result in much cleaner code. ASPPY comes with built-in support for fileuploads (request.files), filestreaming (response.file), JSON, ZIP, PDF, Image, Crypto (md5 and sha256)... Imagine you can get rid of all legacy code that you needed back then... It would be an major win and cut away from 1999-codebases. But you know me, I'm not giving up. I need to make some money first now, because I'm broke :) |





Uh oh!
There was an error while loading. Please reload this page.
Hey Pieter! 👋
Just a quick note: when you feel ASPPY is mature enough for a wider audience, publishing it to PyPI (the Python Package Index) is the way to go. Once it's on PyPI, anyone can try it out with one command:
And then run ASP pages directly from their terminal:
You probably know all this, but just in case — here's the super-simplified version of what needs to be done.
Quick Checklist
1. Add a
pyproject.tomlto the repo rootASPPY doesn't have one yet. This is the modern Python packaging config file. A minimal example would look like:
2. Wrap CLI entry points in
main()functionsCurrently
asppycli.pyandasppycheck.pyuseif __name__ == '__main__':at the bottom. Just refactor into:This lets
[project.scripts]above call them correctly.3. Make sure non-Python files ship in the wheel
Two important files need to be in the installed package:
ASPPY/locale_data.json(used by vb_locale.py)www/orwww_starter/as example sitesThese go into the package via package-data config in
pyproject.toml.4. Build locally
Creates
dist/asppy-0.1.0-py3-none-any.whl+dist/asppy-0.1.0.tar.gz.5. Test install locally
If
locale_data.jsoncan't be found, fix the package-data config and rebuild.6. Upload to TestPyPI first (sandbox)
Always do this before the real PyPI — you can use dummy version numbers and iterate.
twine upload --repository testpypi dist/*7. Upload to real PyPI
twine upload dist/*Why bother?
Right now users have to:
After PyPI:
pip install asppy asppy www\default.aspHuge difference for discoverability and casual try-outs. ASPPY is already 88% IIS parity on our 8 benchmark suites (758 individual tests) — the core VBScript/ASP engine is solid enough for a 0.1.0 release at any point you feel like.
Real-world example: django-oscar
A perfect parallel is
django-oscar— the Django e-commerce framework. No one asks users togit cloneoscar and run it from source. Users simply do:And then
import oscaror use theoscarcommands from anywhere. The entire Oscar runtime (thousands of Python files, templates, static assets) lives quietly in Python'ssite-packagesdirectory — the user's project only contains their own code, not the framework code.ASPPY would be exactly the same. A user building an ASP application only needs:
And that's it. No ASPPY runtime .py files in their project. Everything ASPPY needs (parser.py, lexer.py, vb_builtins.py, msxml.py, adodb.py, locale_data.json, etc.) is stored in
site-packages/asppy/and completely invisible to them. The samepip install asppyupgrade path delivers bug fixes and new features to all their projects at once.This is the standard way every modern Python framework ships to users.
No rush, just a reminder whenever you're ready. 😊
All reactions