Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (1 / 5) |
Uptime: | 44:59:00 |
Calls: | 422 |
Calls today: | 1 |
Files: | 1,024 |
Messages: | 90,302 |
On 21/08/24 10:26, Daniel via Python-list wrote:
Hi folks -
New here. I've perused some posts and haven't seen a posting FAQ for
this NG. I'm learning python right now to realize some hobby goals I
have regarding some smolnet services. What are the NG standards on
pasting code in messages? Do yall prefer I post a pastebin link if it's
over a certain number of lines? I know this isn't IRC - just asking.
Welcome Daniel!
Despite some seeming to think of sending you elsewhere, there are a
number of people 'here' who regularly volunteer their time to help
others.
As with any interaction, the quality of information in the question
directly impacts what can be offered in-response.
More of us can help with (pure) Python questions. Moving into
specialised areas may reduce the number who feel competent to answer.
We'll value any contribution you may be able to offer, and will look
forward to hearing of the projects you attempt...
On Tue, 20 Aug 2024 23:26:39 +0100, Daniel wrote:
New here. I've perused some posts and haven't seen a posting FAQ for
this NG. I'm learning python right now to realize some hobby goals I
have regarding some smolnet services. What are the NG standards on
pasting code in messages? Do yall prefer I post a pastebin link if it's
over a certain number of lines? I know this isn't IRC - just asking.
<snark>
Standards? This is usenet, the last remaining wild west. Good news: c.l.p isn't overrun by trolls. Bad news: c.l.p doesn't seem to be overrun by
much of anybody.
</snark>
smolnet, as in things like
rbowman <bowman@montana.com> writes:...
On Tue, 20 Aug 2024 23:26:39 +0100, Daniel wrote:
smolnet, as in things like
Lesser used protocols not known by many in the mainstream. Such as:
gopher, gemini, finger, spartan, titan, etc.
An example of use, here's a weather service tied to a finger. Put your
city name as the user. This isn't mine, but it is inspiring. Example:
finger miami@graph.no
Lesser used protocols not known by many in the mainstream. Such as:
gopher, gemini, finger, spartan, titan, etc.
An example of use, here's a weather service tied to a finger. Put your
city name as the user. This isn't mine, but it is inspiring. Example:
finger miami@graph.no
For all options, go to the help finger:
finger help@graph.no
The OpSys on this machine no longer features finger (available for installation as an 'extra').
I am on forums but tend to stay away from them unless I absolutely have
to. I like newsgroups as they are - though I have noticed a massive drop
in users ever since Google dropped their groups service. I also saw a
minor drop in spam.
On Wed, 21 Aug 2024 22:15:37 +0100, Daniel wrote:
Lesser used protocols not known by many in the mainstream. Such as:
gopher, gemini, finger, spartan, titan, etc.
An example of use, here's a weather service tied to a finger. Put your
city name as the user. This isn't mine, but it is inspiring. Example:
finger miami@graph.no
For all options, go to the help finger:
finger help@graph.no
Thanks. Interesting. I was surprised a Norwegian site would have data for
a small city in the US. I have a Python script that accesses the NOAA (National Oceanic and Atmospheric Administration) API and the data in the Meteogram appears to match well. fwiw, all that does is
observation_url = f"https://api.weather.gov/stations/K{grid_id}/ observations/latest"
response = requests.get(observation_url).json()
using the Python 'requests' package and then parsing out the JSON. Implementing finger probably would be a straight socket connection. I
don't know how useful this is:
https://pypi.org/project/pyfinger/
I assume gopher is fron the archie, veronica, and jughead days. It appears straightforward.
On Wed, Aug 21, 2024 at 4:04â¯PM Daniel via Python-list < python-list@python.org> wrote:
An example of use, here's a weather service tied to a finger. Put your
city name as the user. This isn't mine, but it is inspiring. Example:
finger miami@graph.no
For all options, go to the help finger:
finger help@graph.no
Quite cool!
That is so cool. I've had the same idea to use the API with AWS for my
bbs. I also want to do the same thing for other government sites like
ecfr for pulling aviation regulations.
Is your code somewhere I can look at it?
smolnet, as in things like https://small-tech.org/
Python certainly has the tools. You can even construct a web server on a Raspberry Pi Pico but I don't know any specifics about smolnet.
The Pico uses MicroPython which is stuck on an old version of Python, unfortunately.
stall gopher, Fedora doesn't. Go figure.
If you have lynx, you can visit this gopher interface to Wikipedia:
gopher://gopherpedia.com
On Thu, 22 Aug 2024 10:40:52 -0700, Paul Rubin wrote:
The Pico uses MicroPython which is stuck on an old version of Python,
unfortunately.
I think it's up to 3.4 in general and erratic past that. It doesn't have
the match from 3.10. I don't think it has f-strings though it may have
the walrus. There are workarounds but it can be annoying.
I haven't worked with CircuitPython lately and don't know if it has pulled
in later features.
- it's cut-down to work on bare-metal which makes for low demands on
resources, but commensurate shortage of the facilities we CPython developers take for-granted (ie may allow ourselves to find annoying)
MicroPython vs CircuitPythonHave you (gentle reader) used both and feel able to offer a comparison
- when to prefer one over the other?
On 23/08/24 07:49, rbowman via Python-list wrote:
On Thu, 22 Aug 2024 10:40:52 -0700, Paul Rubin wrote:
The Pico uses MicroPython which is stuck on an old version of Python,
unfortunately.
How did this enter the conversation/thread?
Paul's 'contribution' does not even appear on the Archive...
I haven't worked with CircuitPython lately and don't know if it has
pulled in later features.
Have you (gentle reader) used both and feel able to offer a comparison -
when to prefer one over the other?
I am confused by the cross-over to Python-list. I only read/post to comp.lang.python. Is that echoed to Python-list or vice versa?
On Fri, 23 Aug 2024 08:36:02 +1200, dn wrote:
On 23/08/24 07:49, rbowman via Python-list wrote:
On Thu, 22 Aug 2024 10:40:52 -0700, Paul Rubin wrote:
The Pico uses MicroPython which is stuck on an old version of Python,
unfortunately.
How did this enter the conversation/thread?
Paul's 'contribution' does not even appear on the Archive...
I'm probably guilty. I mentioned in passing the older protocols like
finger could even be implemented on something like the Pico W with MicroPython.
I am confused by the cross-over to Python-list. I only read/post to comp.lang.python. Is that echoed to Python-list or vice versa?
I haven't worked with CircuitPython lately and don't know if it has
pulled in later features.
Have you (gentle reader) used both and feel able to offer a comparison -
when to prefer one over the other?
I've only used CircuitPython on the Adafruit Playground Express. https://circuitpython.org/board/circuitplayground_express/
and MicroPython on the Pico W. Since then Adafruit has expanded their collection of boards and support them with CircuitPython.
One difference that makes them hard to compare is the Express has quite a
few on-board sensors like the Arduino Nano Sense 33, and interfaces to
them are baked into CircuitPython.
The Pico W has a wealth of I/O most doubling as I2C, PWM, or A/D with only
a onboard LED for the mandatory 'hello world' blink code. MicroPython is
more generic and you may have to import modules for specific external
devices like the SSD1306 OLED display. That's easily done with Thonny or pipkin.
As far as core Python I'd say they're similar. MicroPython is more generic and may require more work to set up where Adafruit can match the boards
they have developed.
As I said it's been a while but MicroPython has the _threading module so
you can utilize both cores of the RP2040. Adafruit's new Feather has a
RP2040 and like the Pico W assumes you'll be using the PIO to externals rather than anything onboard so CircuitPython probably has it.
https://www.adafruit.com/product/4884
From the horse's mouth:
"There is great C/C++ support, unofficial (but really good) Arduino
support, an official MicroPython port, and a CircuitPython port! We of
course recommend CircuitPython because we think it's the easiest way to
get started and it has support with most of our drivers, displays,
sensors, and more, supported out of the box so you can follow along with
our CircuitPython projects and tutorials."
I don't know if Adafruit has a RP2350 board yet but they say CircuitPython will be even happier on the Pico 2.
https://www.adafruit.com/product/6006
For better or worse there are a lot more choices now than fiddling around with the Arduino Uno back in the day.
With MicroPython on the Pico, you use some command line utility to
transfer files instead, but it is no big deal.
Adding a display to the Pico-W is my next project... After that, gyros
(am thinking it may not go so well, on balance... hah!).
New here. I've perused some posts and haven't seen a posting FAQ for
this NG. I'm learning python right now to realize some hobby goals I
have regarding some smolnet services. What are the NG standards on
pasting code in messages? Do yall prefer I post a pastebin link if
it's over a certain number of lines? I know this isn't IRC - just
asking.