PKG-INFO 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Metadata-Version: 1.1
  2. Name: enum34
  3. Version: 1.1.6
  4. Summary: Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4
  5. Home-page: https://bitbucket.org/stoneleaf/enum34
  6. Author: Ethan Furman
  7. Author-email: ethan@stoneleaf.us
  8. License: BSD License
  9. Description: enum --- support for enumerations
  10. ========================================
  11. An enumeration is a set of symbolic names (members) bound to unique, constant
  12. values. Within an enumeration, the members can be compared by identity, and
  13. the enumeration itself can be iterated over.
  14. from enum import Enum
  15. class Fruit(Enum):
  16. apple = 1
  17. banana = 2
  18. orange = 3
  19. list(Fruit)
  20. # [<Fruit.apple: 1>, <Fruit.banana: 2>, <Fruit.orange: 3>]
  21. len(Fruit)
  22. # 3
  23. Fruit.banana
  24. # <Fruit.banana: 2>
  25. Fruit['banana']
  26. # <Fruit.banana: 2>
  27. Fruit(2)
  28. # <Fruit.banana: 2>
  29. Fruit.banana is Fruit['banana'] is Fruit(2)
  30. # True
  31. Fruit.banana.name
  32. # 'banana'
  33. Fruit.banana.value
  34. # 2
  35. Repository and Issue Tracker at https://bitbucket.org/stoneleaf/enum34.
  36. Platform: UNKNOWN
  37. Classifier: Development Status :: 5 - Production/Stable
  38. Classifier: Intended Audience :: Developers
  39. Classifier: License :: OSI Approved :: BSD License
  40. Classifier: Programming Language :: Python
  41. Classifier: Topic :: Software Development
  42. Classifier: Programming Language :: Python :: 2.4
  43. Classifier: Programming Language :: Python :: 2.5
  44. Classifier: Programming Language :: Python :: 2.6
  45. Classifier: Programming Language :: Python :: 2.7
  46. Classifier: Programming Language :: Python :: 3.3
  47. Classifier: Programming Language :: Python :: 3.4
  48. Classifier: Programming Language :: Python :: 3.5
  49. Provides: enum