🍰
Grasshopper ES por BetweenRealities
  • Using and Generating Documentation
    • GitHub
    • Discord
      • Speckle Webhooks
    • Speckle Client
  • Potencial technological implementations
  • 🧞Compute
    • Introducción a Grasshopper
      • Customizar Entorno
        • VSCode
      • Rhinoceros 3d
      • Hops
      • Galapagos
    • Modelos Informados
      • Comportamiento Estructural
        • Automatizar cálculo Python
      • OOP
      • Rhino Inside Revit
        • Revit
          • Modelado 3d en Revit
          • Certificación profesional Revit
      • Energía
    • Procesos Urbanos
      • Automatizar Qgis
      • Librerías Python
      • Librerías Grasshopper
      • Stable Diffusion
    • Programación
      • RhinoPython
        • Anatomía del script
        • Python básico
        • Tuples, listas y diccionarios
        • Operadores y funciones
        • Ejecución condicional
        • Geometría
        • Clases
      • Multithread
  • 🪅Database
    • Lenguaje Python
      • Types and operations
      • Statements and syntax
      • Function and generators
      • Modules and packages
      • Classes and OPP
      • Exception and tools
      • Advance topics
    • Análisis de la Información
      • Comparison with SQL
      • Comparison with R / R libraries
      • Pandas
    • Abrir Acceso
      • Rest API Abierta
    • Blockchain Descentralización
  • 🕸️COLLECT
    • Captura de Datos
      • Raspberry Pi
        • Encendido y apagado automático
      • Arduino
      • UAS
      • Fotogrametría
        • Crashes
    • Técnicas Machine Learning
      • Clasificación
      • Computer Vision
    • Computación en la Nube
      • Contenedores
      • Azure
      • Ubuntu Server Deploy
      • PostgreSQL Server
      • Rhino Compute Deploy
  • 🍭INTERACT
    • Introducción a Unreal Engine
      • Ejecutar Python
      • Datasmith
      • Materiales
        • Crear PBR
        • Materiales Introducción
      • Iluminación
        • Iluminación Introducción
        • Raytraced Iluminación Cinemática
      • Assets Management
    • Interacción Inmersiva
      • Blueprints
        • Blueprints estandar
        • Blueprints Introducción
        • Diseño Nivel
      • Packaging
      • Performance
    • Interfaces Bidimensionales
Con tecnología de GitBook
En esta página

¿Te fue útil?

  1. Database
  2. Lenguaje Python

Modules and packages

Modules and packages

  • Modules, the big picture: Why Modules?; Python program architecture; How imports work; Byte code files; The module search path. Large programs are divided into multiple files, which are linked together at runtime by imports.

From module source code file to module object: When that module is imported. Set PYTHONPATH environment variable: if the file is not in the current working directory. What is a namespace and what contains?: self-contained package of variables, known as the attributes of the namespace object.

  • Module coding basics: Module creation; Module usage; Module namespaces; Reloading modules.

How do you make a module?: write a text file containing python statements, every source code file is automatically a module. How is the reload function related to imports?: force a module to be imported again; pick up new version of a module's during development.

  • Module packages: Package import; Why use package imports?; Package relative imports; Namespace package.

Purpouse of an init.py file in a module: declare and initialize a regular module package, runs its code the first time tou import through a directory in a process.

  • Advance topics: Module design concepts; Data hiding in modules; Enabling future language features; Mixed usage modes; Changing the module search path; The as extension for import and from; importing modules by name string; Module gotchas.

What does it mean when a module's name variable is the string 'main'?: means the file is being executed as a top-level script instead of being imported from another file in the program; the file is being used as a program, not a library.

AnteriorFunction and generatorsSiguienteClasses and OPP

Última actualización hace 2 años

¿Te fue útil?

🪅