Sunrise and Sunset time in Python
<p>I'm currently working on a project that notifies the users when certain activities related to light are triggered. I've done the part related to light. Hence, I need to find an effective way to retrieve sunrise and sunset time in python, since the whole script is written in python. I know there are several libraries out there for other languages, I wonder what the most convenient way is to do this in python.</p>

<p>It will seem pretty much like this, I suppose:</p>

<pre><code>if(sunrise&lt;T&lt;sunset) and (light&lt;threshold):
    notifyUser()
</code></pre>

<p>I'd appreciate any help here, have a good one.</p>