""" InfluxDB Alchemy. """

from .client import InfluxAlchemy
from .measurement import Measurement

__version__ = "0.1.0"

""" InfluxDB Alchemy. """
import pkg_resources

from .client import InfluxAlchemy
from .measurement import Measurement


try:
    __version__ = pkg_resources.get_distribution(__package__).version
except pkg_resources.DistributionNotFound:  # pragma: no cover
    __version__ = None                      # pragma: no cover

Use package version for __version__
Use package version for __version__

  """ InfluxDB Alchemy. """
+ import pkg_resources
  
  from .client import InfluxAlchemy
  from .measurement import Measurement
  
- __version__ = "0.1.0"
  
+ try:
+     __version__ = pkg_resources.get_distribution(__package__).version
+ except pkg_resources.DistributionNotFound:  # pragma: no cover
+     __version__ = None                      # pragma: no cover
+ 
Use package version for __version__
## Code Before:
""" InfluxDB Alchemy. """

from .client import InfluxAlchemy
from .measurement import Measurement

__version__ = "0.1.0"

## Instruction:
Use package version for __version__
## Code After:
""" InfluxDB Alchemy. """
import pkg_resources

from .client import InfluxAlchemy
from .measurement import Measurement


try:
    __version__ = pkg_resources.get_distribution(__package__).version
except pkg_resources.DistributionNotFound:  # pragma: no cover
    __version__ = None                      # pragma: no cover
