Re: Importing from within package

2020-09-23 Thread Abdur-Rahmaan Janhangeer
in shopyoapi Kind Regards, Abdur-Rahmaan Janhangeer https://www.github.com/Abdur-RahmaanJ Mauritius sent from gmail client on Android, that's why the signature is so ugly. -- https://mail.python.org/mailman/listinfo/python-list

Re: Importing from within package

2020-09-22 Thread Abdur-Rahmaan Janhangeer
Greetings list, In case this might help, i am on Python3.8 and running in a virtual env This command also does not work: python -m shopyo new . test2 Kind Regards, Abdur-Rahmaan Janhangeer about <https://compileralchemy.github.io/> | blog <https://abdur-rahmaanj.github.io/> g

Importing from within package

2020-09-22 Thread Abdur-Rahmaan Janhangeer
-m pip install shopyo==1.1.45 shopyo new . test2 Thanks! Kind Regards, Abdur-Rahmaan Janhangeer about <https://compileralchemy.github.io/> | blog <https://abdur-rahmaanj.github.io/> github <https://github.com/Abdur-RahmaanJ> Mauritius -- https://mail.python.org/mailman/listinfo/python-list

FlaskCon: Today Friday 3rd July, Tomorrow and Sunday!

2020-07-03 Thread Abdur-Rahmaan Janhangeer
for non-Flask people As panelists you have organisers and reviewers like - David Lord - Miguel Grinberg - Grey Li and others How to attend? See here: https://flaskcon.com/#faq Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy <https://compileralchemy.github.io/> | blog <http

Re: The FaQ project - Single or Double quotes

2020-06-11 Thread Abdur-Rahmaan Janhangeer
I'm still unsure whether or not to have a summary instead of just listing the texts Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy <https://compileralchemy.github.io/> | blog <https://abdur-rahmaanj.github.io/> github <https://github.com/Abdur-RahmaanJ> Mauritius On

The FaQ project - Single or Double quotes

2020-06-11 Thread Abdur-Rahmaan Janhangeer
.io/pyfaq/> I auto pull the messages with some manual edits like filtering empty mails etc Mr Christopher maintains one for python-ideas https://github.com/PythonCHB/PythonListsSummaries This one is intended to have even some common questions like where do i start etc Kind Regards, Abdur-R

David Beazley's Practical Python Course Now Open & Free

2020-05-29 Thread Abdur-Rahmaan Janhangeer
Enjoy!" If you need to recommend a beginner material, please add it to your list! Kind Regards, Abdur-Rahmaan Janhangeer https://www.github.com/Abdur-RahmaanJ Mauritius sent from gmail client on Android, that's why the signature is so ugly. -- https://mail.python.org/mailman/listinfo/python-list

Re: SQLAlchemy & Postgresql

2020-05-28 Thread Abdur-Rahmaan Janhangeer
You tried for isbn, title, author, year in reader: without flask, do you actually see a value for author? Like using a normal print Kind Regards, Abdur-Rahmaan Janhangeer https://www.github.com/Abdur-RahmaanJ Mauritius sent from gmail client on Android, that's why the signature is so

Re: SQLAlchemy & Postgresql

2020-05-28 Thread Abdur-Rahmaan Janhangeer
ct/models.py where you define code and your table is created the link uses flask-sqlalchemy but pure sqlalchemy should be somewhat similar 4th thing: when using for isbn, title, author, year in reader: without flask, do you actually see a value for author? Kind Regards, Abdur-Rahmaan Janhangeer

Re: SQLAlchemy & Postgresql

2020-05-28 Thread Abdur-Rahmaan Janhangeer
Greetings, where did you define your models? Kind Regards, Abdur-Rahmaan Janhangeer https://www.github.com/Abdur-RahmaanJ Mauritius sent from gmail client on Android, that's why the signature is so ugly. On Thu, 28 May 2020, 22:22 Buddy Peacock, wrote: > Hello group, > I have a

Re: Access an object to which being bound

2020-05-27 Thread Abdur-Rahmaan Janhangeer
Greetings, .append(self) is a hit idea Updated the project with the button demo https://github.com/Abdur-rahmaanJ/hooman/ Next i will be attempting to add a grid system. I feel myself developing tkinter from scratch Thanks for the help everybody ^^_ Kind Regards, Abdur-Rahmaan Janhangeer

Re: Access an object to which being bound

2020-05-27 Thread Abdur-Rahmaan Janhangeer
on the fly each frame was never a good option (better define before then update x and y in loop) that's the only caveat to watch out if people create objects on the fly Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy <https://compileralchemy.github.io/> | blog <https://abdur-rahmaanj.

Re: Access an object to which being bound

2020-05-27 Thread Abdur-Rahmaan Janhangeer
buttons is to keep track of buttons instantiated and calling update on each one. Wrap in a update_all () method And please close your eyes to the wonderful mess Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy <https://compileralchemy.github.io/> | blog <https://abdur-rahmaanj.

Re: Access an object to which being bound

2020-05-27 Thread Abdur-Rahmaan Janhangeer
Regards, Abdur-Rahmaan Janhangeer compileralchemy <https://compileralchemy.github.io/> | blog <https://abdur-rahmaanj.github.io/> github <https://github.com/Abdur-RahmaanJ> Mauritius On Thu, May 28, 2020 at 12:15 AM Chris Angelico wrote: > On Thu, May 28, 2020 at 5:48 AM Abd

Access an object to which being bound

2020-05-27 Thread Abdur-Rahmaan Janhangeer
Greetings, Lets say i have class A: ... class B: self.x = A then used b = B() z = b.x() now how in A i get a reference to B when z is assigned to b.x? Thanks Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy <https://compileralchemy.github.io/> | blog <http

Re: Strings: double versus single quotes

2020-05-23 Thread Abdur-Rahmaan Janhangeer
Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy <https://compileralchemy.github.io/> | blog <https://abdur-rahmaanj.github.io/> github <https://github.com/Abdur-RahmaanJ> Mauritius On Sun, May 24, 2020 at 12:03 AM DL Neil via Python-list < python-list@python.org>

Re: Strings: double versus single quotes

2020-05-23 Thread Abdur-Rahmaan Janhangeer
Greetings, Nice idea >>> '''You said "No it doesn't"''' 'You said "No it doesn\'t"' Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy <https://compileralchemy.github.io/> | blog <https://abdur-rahmaanj.github.io/> github <https://github.com/Abdu

Re: Strings: double versus single quotes

2020-05-23 Thread Abdur-Rahmaan Janhangeer
Nice one, Was requoting: <>> "hello" 'hello'>> from R Hettinger Kind Regards, Abdur-Rahmaan Janhangeer https://www.github.com/Abdur-RahmaanJ Mauritius sent from gmail client on Android, that's why the signature is so ugly. -- https://mail.python.org/mailman/listinfo/python-list

FlaskCon Call For Papers

2020-05-23 Thread Abdur-Rahmaan Janhangeer
Greetings list, The call for papers for FlaskCon is open: https://flaskcon.com/ It is a community-run event, 100% free and remote with reviewers from the Pallets, Flask maintainers and more Feel free to pass the word around! Kind Regards, Abdur-Rahmaan Janhangeer Mauritius -- https

Re: Strings: double versus single quotes

2020-05-23 Thread Abdur-Rahmaan Janhangeer
com/raymondh/status/1259209765072154624?s=20 Guess a personal choice thing ~ Kind Regards, Abdur-Rahmaan Janhangeer Mauritius On Tue, May 19, 2020 at 10:20 PM Manfred Lotz wrote: > Hi there, > I am asking myself if I should preferably use single or double quotes > for strings? > > If I

FlaskCon is round the corner!

2020-05-06 Thread Abdur-Rahmaan Janhangeer
of the participating UGs. Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy.com <https://www.compileralchemy.com> | github <https://github.com/Abdur-rahmaanJ/> Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: [ANN] Python Brain Teasers Book is Out

2020-05-05 Thread Abdur-Rahmaan Janhangeer
. _disclaimer: a python-authors admin_ Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy.com <https://www.compileralchemy.com> | github <https://github.com/Abdur-rahmaanJ/> Mauritius On Wed, May 6, 2020 at 8:05 AM Miki Tebeka wrote: > Hi, > > > Would be gr

Re: [ANN] Python Brain Teasers Book is Out

2020-05-04 Thread Abdur-Rahmaan Janhangeer
Greetings, Would be grateful if you could post it to python-authors also: https://mail.python.org/mailman/listinfo/python-authors Thanks! Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy.com <https://www.compileralchemy.com> | github <https://github.com/Abdur-rahmaanJ/&g

Re: python programs to track bitcoins

2020-04-10 Thread Abdur-Rahmaan Janhangeer
https://github.com/pyhoneybot/honeybot/blob/master/honeybot/plugins/bitcoin.py The above made use of a nice API. Kind Regards, Abdur-Rahmaan Janhangeer https://www.compileralchemy.com https://www.github.com/Abdur-RahmaanJ Mauritius sent from gmail client on Android, that's why the signature

Re: How Does requests.get Work?

2020-04-02 Thread Abdur-Rahmaan Janhangeer
Ah i get it from .api import request, get, head, post, patch, put, delete, options Whatever you import in __init__.py, you can access it directly. Thanks! Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy.com <https://www.compileralchemy.com> | github <https://github.com/Abdur

Re: How Does requests.get Work?

2020-04-02 Thread Abdur-Rahmaan Janhangeer
When dev a package, if you can do: >>> from package import x does not mean you can do >>> import package >>> package.x for requests i was wondering how requests package can have >>> requests.get while requests is defined in api.py Kind Regard

How Does requests.get Work?

2020-04-01 Thread Abdur-Rahmaan Janhangeer
Greetings list, I was viewing requests https://github.com/psf/requests I know we can do `requests.get` Found `get` defined in api.py I would appreciate an explanation as to how to configure the package so that we can use get directly. Thanks. Kind Regards, Abdur-Rahmaan Janhangeer

Re: How To Change Package Representation on Shell?

2020-04-01 Thread Abdur-Rahmaan Janhangeer
Having fun with packages Since i don't master packaging completely thought there was a __repr__.py protocol nearby! Might be useful maybe to replace it by a help message Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy.com <https://www.compileralchemy.com> | github <https://g

How To Change Package Representation on Shell?

2020-04-01 Thread Abdur-Rahmaan Janhangeer
Greetings list, I have a custom package. >>> import package >>> package '> what do i have to modify from my package to have like >>> package Hi! Thanks! Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy.com <https://www.compileralchemy.com> | githu

Open Source Maintainer Needed For Our Online Meetup

2020-03-25 Thread Abdur-Rahmaan Janhangeer
as an option) Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy.com <https://www.compileralchemy.com> | github <https://github.com/Abdur-rahmaanJ/> Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: Difficulty in generating .exe from .py file

2020-02-25 Thread Abdur-Rahmaan Janhangeer
Can you share your codes? Thank you! On Wed, 26 Feb 2020, 00:45 Aakash Jana, wrote: > I have made a simple web scraper that scrapes Wikipedia and prints some > info on to the command line using requests and BeautifulSoup. Whenever I > execute pyinstaller it gives an error "expected integer got

Re: How to get a place's longitude and latitude?

2020-02-24 Thread Abdur-Rahmaan Janhangeer
Ever heard of QPython? It has a sl4a Api http://edu.qpython.org/qsl4a-develop/index.html?form=web You can pull in GPS coordinates! On Mon, 24 Feb 2020, 20:07 Souvik Dutta, wrote: > Yes. > > On Mon, 24 Feb, 2020, 9:36 pm Abdur-Rahmaan Janhangeer, < > arj.pyt...@gmail.com> wr

Re: How to get a place's longitude and latitude?

2020-02-24 Thread Abdur-Rahmaan Janhangeer
On phone? On Mon, 24 Feb 2020, 20:02 Souvik Dutta, wrote: > Hi guys I want to make a program that kinda sends an sos message with the > measures of longitude and latitude (which is super inconvenient) to > someone. How can I do that I mean how can I get the longitude and latitude? > Any help

Re: How to make a cross platform python app with pyinstaller??

2020-02-04 Thread Abdur-Rahmaan Janhangeer
Use the Dev version of pyinstaller. pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius On Wed, Feb 5, 2020 at 7:31 AM

Mauritius UG (pymug) 2019 End of Year Report

2020-02-04 Thread Abdur-Rahmaan Janhangeer
Greetings list, Today our User Group published it's first ever end-of-year report: https://www.pymug.com/assets/pymug_2019_report.pdf Feel free to ask me anything! Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur

Re: Please answer fast.....

2020-02-02 Thread Abdur-Rahmaan Janhangeer
CSV as data entry with " " is a pain. > > -- https://mail.python.org/mailman/listinfo/python-list

Re: Please answer fast.....

2020-02-02 Thread Abdur-Rahmaan Janhangeer
Ah ok. suggest you put names, birthday in csv the load csv for each row: layout.addWidget(QLabel) On Sun, 2 Feb 2020, 21:21 Souvik Dutta, wrote: > Because i want to show the name and date of 40 persons and their birthdays. > > On Sun, Feb 2, 2020, 10:42 PM Abdur-Rahmaan J

Re: Please answer fast.....

2020-02-02 Thread Abdur-Rahmaan Janhangeer
I'm 100% ready to answer your question, just add some more details like why you need 40 labels. -- https://mail.python.org/mailman/listinfo/python-list

Re: PyQt5 help on buttons and grid layout

2020-02-02 Thread Abdur-Rahmaan Janhangeer
d = {} layout = ... for key in d: layout.addWidget(QButton(...)) On Sun, 2 Feb 2020, 19:59 Souvik Dutta, wrote: > Hi, > I want to add about 40 buttons based upon a dictionary. I want them to be > added to a grid layout. How can I do it easily. Please write the code and > thank you for

Re: App made with pyinstaller is not running on another computer.

2020-02-02 Thread Abdur-Rahmaan Janhangeer
recompile with the latest dev versio of pyinstaller, fixed my issue. On Sun, 2 Feb 2020, 19:55 Souvik Dutta, wrote: > Hi, > I made an executable file with pyinstaller on my pc which had python 3.7. > It ran well in my pc but when I tried to run it on my friend computer > having a 32 bit

Re: QTableWidget help!!

2020-01-31 Thread Abdur-Rahmaan Janhangeer
QTableView is recommended, what pyqt version are you using? On Fri, 31 Jan 2020, 07:35 Souvik Dutta, wrote: > Hi, > I want to add a QTableWidget to an existing window with other labels and > button. How can I add the QTableWidget without having to set it as > centralwidget and be able to move

Re: PyQt5 help.

2020-01-26 Thread Abdur-Rahmaan Janhangeer
suggest a scrollable widget which on loads appends labels with members birthdays in it. If 3 members have birthdays today, it will append 3 labels On Sun, 26 Jan 2020, 21:39 Souvik Dutta, wrote: > I am making a birthday reminder app. I want to show tha label (" Today is > Tom's birthday.")

Re: Python Testimonials With Proofs

2020-01-19 Thread Abdur-Rahmaan Janhangeer
Also started editing https://wiki.python.org/moin/OrganizationsUsingPython Most quotes over there don't have references. Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius On Sun, Jan 19, 2020

Python Testimonials With Proofs

2020-01-18 Thread Abdur-Rahmaan Janhangeer
l free to add more. Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius -- https://mail.python.org/mailman/listinfo/python-list

How to specify sqlite engine path in sqlalchemy using Zipapp

2020-01-16 Thread Abdur-Rahmaan Janhangeer
://stackoverflow.com/questions/59767920/how-to-specify-sqlite-engine-path-in-sqlalchemy-using-zipapp It seems that you can read db files from zips but i'm asking how you maange sqlalchemy. Thank You. Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github

Re: pyinstaller

2020-01-15 Thread Abdur-Rahmaan Janhangeer
appearing in it you shall see your executable file. Any issue, let us know! You might want to browse from scratch tutorials like this <https://datatofish.com/executable-pyinstaller/>. Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://g

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-08 Thread Abdur-Rahmaan Janhangeer
On Wed, 8 Jan 2020, 02:15 Barry, wrote: > > Have a look at this write up about the horror that is zip file name > handling. > > https://marcosc.com/2008/12/zip-files-and-encoding-i-hate-you/ > > This has been a pain point at work. > Since zipapp did not touch the subject, i won't either unless

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-08 Thread Abdur-Rahmaan Janhangeer
On Wed, 8 Jan 2020, 11:09 Christopher Barker, wrote: > > But a thought on that -- you may be able to accomplish something similar > with conda, "conda constructor", and "conda run". -- or a new tool built > from those. The idea is that the first time you ran your "app", it would > install its

Re: [Python-ideas] Enhancing Zipapp

2020-01-08 Thread Abdur-Rahmaan Janhangeer
Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius On Wed, Jan 8, 2020 at 1:32 AM Brett Cannon wrote: > > > This would be a packaging detail so not something to be specified in the stdlib. Yes, the module opening the zip will look for it >> - [ ] Si

Re: [Python-ideas] Enhancing Zipapp

2020-01-07 Thread Abdur-Rahmaan Janhangeer
Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius On Wed, Jan 8, 2020 at 2:20 AM Barry wrote: > > You are offing up a competitor against python wheels > This proposal proposes to

Removing reference to local installed package

2020-01-07 Thread Abdur-Rahmaan Janhangeer
is not in site-package in the first place importing the package does not work as the package is not in site-package it won't install and won't delete Q: How do i remove the reference of a local package? Thanks Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> |

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-06 Thread Abdur-Rahmaan Janhangeer
Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius On Tue, Jan 7, 2020 at 6:40 AM Christopher Barker wrote: > I’m a bit unclear on how far this goes: is it just a bit more specific > w

Re: Python, Be Bold! - The Draft

2020-01-06 Thread Abdur-Rahmaan Janhangeer
On Tue, 7 Jan 2020, 05:56 Michael Torrie, wrote: > > My mistake. I see now that it was something you forwarded to the list > from someone else. > > Doesn't change my reply, though. Whoever said it, it's not very > relevant. Who's "us" and what is it the Python gives them that Julia > will soon

Re: [Python-ideas] Enhancing Zipapp

2020-01-06 Thread Abdur-Rahmaan Janhangeer
On Tue, 7 Jan 2020, 01:57 Barry Scott, wrote: > > > Please cover the pro's and con's of the alernatives that have been raised > as comments > on this idea, as is usually done for a PEP style document. > Thanks, i don't have much experience writing peps and if i don't bug you may i ask what

Re: Python, Be Bold! - The Draft

2020-01-06 Thread Abdur-Rahmaan Janhangeer
No, i did not write that, it's not Abdur-Rahmaan Janhangeer wrote rather -- Forwarded message - From: *AAKASH JANA* Date: Mon, 6 Jan 2020, 21:15 Subject: Re: Python, Be Bold! - The Draft To: Abdur-Rahmaan Janhangeer Please forward it to aakashjana2...@gmail.com On Tue, 7 Jan

Re: [Python-ideas] Enhancing Zipapp

2020-01-06 Thread Abdur-Rahmaan Janhangeer
On Tue, Jan 7, 2020 at 12:15 AM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > Proposing to include pa > please ignore that part -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] Enhancing Zipapp

2020-01-06 Thread Abdur-Rahmaan Janhangeer
Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius On Mon, Jan 6, 2020 at 11:53 PM Chris Angelico wrote: > On Tue, Jan 7, 2020 at 6:37 AM Abdur-Rahmaan Janhangeer > wrote: > Where is

Enhancing Zipapp

2020-01-06 Thread Abdur-Rahmaan Janhangeer
/ [4] https://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html [5] https://docs.python.org/3/library/zipapp.html [6] https://gist.github.com/lukassup/cf289fdd39124d5394513a169206631c [7] https://source.android.com/security/apksigning [8] https://pythonwheels.com Yours, A

Re: Python, Be Bold!

2020-01-06 Thread Abdur-Rahmaan Janhangeer
Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius On Mon, Jan 6, 2020 at 9:44 PM DL Neil via Python-list < python-list@python.org> wrote: > > I have not (been following the thread)

Python, Be Bold! - The Draft

2020-01-06 Thread Abdur-Rahmaan Janhangeer
-- Forwarded message - From: AAKASH JANA Date: Mon, 6 Jan 2020, 21:15 Subject: Re: Python, Be Bold! - The Draft To: Abdur-Rahmaan Janhangeer Maybe but if you know or have heard of Julia the language. You will realise its going to take over what python gives us. So i think

Re: Python, Be Bold!

2020-01-06 Thread Abdur-Rahmaan Janhangeer
On Mon, 6 Jan 2020, 20:50 Rhodri James, wrote: > On 01/01/2020 07:22, Abdur-Rahmaan Janhangeer wrote: > > -- Self-updating Python distributions > > Microsoft have proved time and again that this is a really good thing if > you want to piss off your customer base. Let's not

Re: Python, Be Bold! - The Draft

2020-01-06 Thread Abdur-Rahmaan Janhangeer
On Mon, 6 Jan 2020, 21:01 Chris Angelico, wrote: > > Don't worry. It's trying to solve a problem that doesn't exist, in a > platform-specific way, imitating a completely different execution > model, and ultimately is just reinventing what pip already does. You > can safely ignore it for plenty

Re: Python, Be Bold! - The Draft

2020-01-06 Thread Abdur-Rahmaan Janhangeer
On Mon, 6 Jan 2020, 20:46 Rhodri James, wrote: > > I'm an embedded systems programmer. Congratulations, you have just > rendered your draft utterly irrelevant to me and those like me. > If you followed the previous thread there was some misunderstanding as to what do i mean by executable,

Re: Python, Be Bold! - The Draft

2020-01-06 Thread Abdur-Rahmaan Janhangeer
On Mon, 6 Jan 2020, 18:37 o1bigtenor, wrote: > > Maybe I'm just slow but it really seems like what you are trying to > achieve is > a java like system. > > Wouldn't you find it easier to just use java rather than trying to remake > Python into Java? (It would be easier imo.) > It proposes to

Python, Be Bold! - The Draft

2020-01-06 Thread Abdur-Rahmaan Janhangeer
it be an advantage for 3rd party packages? This draft does not propose a fixed solution but expects proposals from the community (like hash, which hash to use etc) or point point wrong assumptions. Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Be Bold!

2020-01-05 Thread Abdur-Rahmaan Janhangeer
On Sun, 5 Jan 2020, 14:38 Marco Sulla, < mail.python@marco.sulla.e4ward.com> wrote: > > Sorry, I do not understand. > Probably do you mean: I install all the wheels in a machine identical > to the target I want (maybe using a VM, I don't know if Python support > cross-compiling). Then I copy

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
<< than some ever-changing feature wish list. >> ^^_ since the beginning it was .jar -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
On Sat, 4 Jan 2020, 06:49 Michael Torrie, wrote: > On 2020-01-03 5:44 p.m., Abdur-Rahmaan Janhangeer wrote: > > .jar provides more than just compression. It provides app info and has > > signing ability > > This is the first time you've mentioned signing ability in th

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
On Sat, 4 Jan 2020, 05:23 Chris Angelico, wrote: > > I'm not sure what your proposal is here. Are you trying to make a > single-file executable, or are you trying to make an archive of Python > source code (like a jar), or are you trying something different again? > a .jar but it can be defined

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
On Sat, 4 Jan 2020, 05:10 Abdur-Rahmaan Janhangeer, wrote: > > Also, you must have a dist for every different Os. > *for native execs > -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 23:49 Barry Scott, wrote: > > I'm at a lose to understand what the problem is that zipapp is the > solution to that is not better served > with pip or PyInstall etc. > Well proposing to enhance zipapp, by adding app metadata and signing. By pip i understand you mean pure

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
On Sat, 4 Jan 2020, 02:55 Greg Ewing, wrote: > On 3/01/20 3:31 pm, Abdur-Rahmaan Janhangeer wrote: > > You can pass a zip file with a .pyz extension to the python > interpreter and it will look for a __main__.py file and run > it. > > That seems to give you all the f

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 06:33 Bob van der Poel, wrote: > Oh, now we get the rational. No thank you! Enough of the world is hidden > away as it is. > Zipapp was introduced for a reason, .jar for a reason. This proposal also adds in the ability of the interpreter to notify of new Python releases. >

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 02:50 Barry Scott, wrote: > Expect for trivial programs you cannot distribute a single file python exe > for windows. > You can, PyInstaller does it. You can have folder-based or single file apps As you found zipapp is not a solution. > Zipapp is a good candidate.

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
One of the advantages of single "executable"s is the abstraction of details. You don't want users to see what you included. It's an attempt at hiding away details for aesthetic purposes. The second reason is compression. You get a lighter program. The third reason is to be as reverse-engineer

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 02:49 Grant Edwards, wrote: > > Definitely. > > Single file executables aren't really "a thing" on Windows. > This proposal is about a .jar like file executable, not native executables > -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 01:43 Michael Torrie, wrote: > On 1/2/20 2:11 PM, Abdur-Rahmaan Janhangeer wrote: > > But single file are better suited for distribution. > > Maybe. Most windows applications are distributed with installers. I've > made several bundles over the yea

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 01:43 Chris Angelico, wrote: > > Wait, so as well as the single file, you ALSO need a Python > interpreter? Then what's the point? Why not just distribute a .py > file? > Well let's say a Flask, Django or PyQt app, a single file is not really feasible. > --

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 03:35 mm0fmf, wrote: > On 02/01/2020 09:41, Abdur-Rahmaan Janhangeer wrote: > > i wonder who uses windows > > > > I do. The man pays me well to write software for Windows and Linux and I > don't care which . It's just an OS, write the code to

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 03:25 Greg Ewing, wrote: > It looks like what the OP is after already exists: > > https://docs.python.org/3/library/zipapp.html > > "This module provides tools to manage the creation of zip files > containing Python code, which can be executed directly by the Python >

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 01:05 Chris Angelico, wrote: > > They are still FAR better than trying to create a single bloated > executable that contains everything and magically knows how and when > to update itself. > Proposing to freeze things. You distribute a version of the program. The single file

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 01:01 Michael Torrie, wrote: > > But a jar file is not executable on Windows and never has been. Maybe it can > be opened with a file association linking it to a Java runtime > executable. > That's it. See UMLet's distribution mode for example As Chris said with

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 00:58 Chris Angelico, wrote: > > I linked you to a single file executable of mine. It makes use of... > oh hey, the system package manager. See? It works. > I don't understand this one > -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
> > Then we already have this. On Windows, set your file associations > appropriately. On Unix-like platforms, have a shebang at the start, > and chmod it +x. > Not proposing only executable but single file executable. > -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 00:33 Chris Angelico, wrote: > A jar is just an archive of Java class files. It's approximately > equivalent to a zip file of .pyc files. > Exactly the idea, that's why i said zipapp might be a good candidate No, but there are package managers for Windows and Mac too. (I

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 00:14 Chris Angelico, wrote: > > What do you mean by "Python-specific executable"? > a Python equivalent of .jar > Your Python code can go anywhere if you package it up in, say, a .deb > or .rpm, Not everybody uses Linux I > don't understand how "run on any device"

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
Coincidentally, one day before i posted this approach, a user posted on Idle-dev: [Idle-dev] Wishlist: Make executables + startup option which proposes the idea of adding an option to generate a single executable from Idle. It reflects the profound desire of the community to distribute their

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
Oh auto-3rd party modules is a mess. Suggesting updating only the interpreter. We can have a pre-scan which warns the user that upgrading will make the following packages no longer compatible. But that's one aim of venvs i think, is to confine packages to projects, not to the interpreter. No java

Re: Python, Be Bold!

2020-01-02 Thread Abdur-Rahmaan Janhangeer
i wonder who uses windows On Thu, 2 Jan 2020, 12:38 Chris Angelico, wrote: > On Thu, Jan 2, 2020 at 6:20 PM Abdur-Rahmaan Janhangeer > wrote: > > > > if not self-updating, at least the ability to update > > > > That's a package manager's job. > > $ sudo apt

Re: Python, Be Bold!

2020-01-01 Thread Abdur-Rahmaan Janhangeer
if not self-updating, at least the ability to update Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Python, Be Bold!

2019-12-31 Thread Abdur-Rahmaan Janhangeer
s. The idea is not to copy-cat Java but to learn from it. Python is way cooler, but it needs some tuning. Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Packaging Sqlite DB and Pictures with Executable file

2019-12-31 Thread Abdur-Rahmaan Janhangeer
ww.pythonmembers.club/2019/12/31/packaging-an-sqlite-db-included-crud-pyqt5-app-using-pyinstaller/> ! Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: [HN] How to Make Python Wait

2019-12-20 Thread Abdur-Rahmaan Janhangeer
Original from miguel grinberg -- https://mail.python.org/mailman/listinfo/python-list

Re: 3rd party mail package

2019-12-13 Thread Abdur-Rahmaan Janhangeer
That's my starting point au fait. Was asking for a 3rd party package. gmail from pypi has a nice api  (filter etc seem awesome). Wondered if something similar exists. -- https://mail.python.org/mailman/listinfo/python-list

Re: 3rd party mail package

2019-12-13 Thread Abdur-Rahmaan Janhangeer
Wonder where the 2nd party went to. Thanks will look into it! -- https://mail.python.org/mailman/listinfo/python-list

3rd party mail package

2019-12-13 Thread Abdur-Rahmaan Janhangeer
Greetings everybody, What is the best 3rd party package for reading mail? Got a gmail 0.6.x on pypi but it is highly inconsistent (and last commit 2013). Any recommendations? Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.

Re: Reading mail getting [, ...

2019-12-13 Thread Abdur-Rahmaan Janhangeer
Can you please indicate where is the header in my code above? Thanks. Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius > -- https://mail.python.org/mailman/listinfo/python-list

Re: Zipapp can't find sqlite db

2019-12-12 Thread Abdur-Rahmaan Janhangeer
Packaging in this case means converting a folder into a zipapp archive. Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius > > -- https://mail.python.org/mailman/listinfo/python-list

Re: Zipapp can't find sqlite db

2019-12-12 Thread Abdur-Rahmaan Janhangeer
Do you have a data files tuto link? Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.com/Abdur-rahmaanJ> Mauritius > > -- https://mail.python.org/mailman/listinfo/python-list

Zipapp can't find sqlite db

2019-12-06 Thread Abdur-Rahmaan Janhangeer
Greetings, I'm using zipapp to include a gui + db __main__.py dbs/ file.db When packaging, the db is there. When querying through sqlalchemy, it says can't open db file. Help appreciated! Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github

<    1   2   3   4   5   >