Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Client OS username
#2
Firstly, why do you need this information?

Secondly, this isn't really a Python question. Remember that the Python code runs on the client and not the server. Client-side code is written in JavaScript (or something that can be transpiled to JS). Having said that, this is likely going to be difficult to do - browsers aren't going to allow you much access to the underlying OS as that would be quite a security risk, wouldn't it?

You could of course write a desktop app or another web app that runs on the machine and communicates with the server by means of an HTTP API.
Reply


Messages In This Thread
Client OS username - by ImPyBoy17 - Sep-23-2019, 06:01 PM
RE: Client OS username - by ndc85430 - Sep-23-2019, 06:17 PM
RE: Client OS username - by Axel_Erfurt - Sep-23-2019, 06:50 PM
RE: Client OS username - by ndc85430 - Sep-23-2019, 06:55 PM
RE: Client OS username - by Malt - Sep-24-2019, 10:11 AM
RE: Client OS username - by buran - Sep-24-2019, 10:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  AttributeError: '_tkinter.tkapp' object has no attribute 'username' Konstantin23 4 2,006 Aug-04-2023, 12:41 PM
Last Post: Konstantin23
  Hiding username and password on sql tantony 10 3,173 Oct-21-2022, 07:58 PM
Last Post: wavic
  Pulling username from Tuple pajd 21 3,784 Oct-07-2022, 01:33 PM
Last Post: pajd
  Trying to create a conditional with a username Realen 2 1,894 Jun-20-2020, 12:44 AM
Last Post: Realen
  creating a username and pword program using a #def statement and #dictionary zcode12 3 3,238 Oct-14-2018, 04:41 AM
Last Post: volcano63

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020