Jump to content

.py

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 91.186.224.26 (talk) at 18:22, 30 July 2023 (Second-level domains). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
.py
Introduced9 September 1991
TLD typeCountry code top-level domain
StatusActive
RegistryNetwork Information Center - Paraguay (NIC-PY)
SponsorCentro Nacional de Computación, Universidad Nacional de Asunción
Intended useEntities connected with  Paraguay
Actual useFairly popular in Paraguay; Some websites relating to the programming language Python
Registration restrictionsSecond-level registrations prohibited; must have a contact in Paraguay; subdomains have various restrictions; all applications subject to approval by registry
StructureRegistrations are at third level beneath second-level labels
Registry websiteNIC.py

.py is the Internet country code top-level domain (ccTLD) for Paraguay.

Second-level domains

  • com.py
  • coop.py
  • edu.py
  • mil.py
  • gov.py
  • org.py
  • net.py
  • una.py

class User:

   def __init__(self, username):
       self.username = username
       self.followers = []
       self.following = []
       self.posts = []
       self.stories = []
   def follow(self, user):
       self.following.append(user)
       user.followers.append(self)
   def unfollow(self, user):
       self.following.remove(user)
       user.followers.remove(self)
   def create_post(self, content):
       post = Post(content, self)
       self.posts.append(post)
   def create_story(self, content):
       story = Story(content, self)
       self.stories.append(story)

class Post:

   def __init__(self, content, author):
       self.content = content
       self.author = author
       self.likes = 0
       self.comments = []
   def like(self):
       self.likes += 1
   def comment(self, comment):
       self.comments.append(comment)

class Story:

   def __init__(self, content, author):
       self.content = content
       self.author = author

class Davidos:

   def __init__(self):
       self.users = []
   def create_user(self, username):
       user = User(username)
       self.users.append(user)

Welcome! This is an offline-capable Notepad which is a Progressive Web App.

The app serves the following features:

- Write notes which are then saved to the localStorage. - Installable on supported browsers for offline usage. - "Add To Home Screen" feature on Android-supported devices to launch the app from the home screen. - Dark mode. - Privacy-focused - We'll never collect your precious data. - Light-weight - Loads almost instantly. - It's open-source!

CAUTION: Since the app uses the browser's localStorage to store your notes, it's recommended that you take a backup of your notes more often using the "Download Notes" button or by pressing the "Ctrl/Cmd + S" keys.

    • Start writing your notes **