<p dir="ltr">The usage of the api as documented here - <a href="https://github.com/zachwill/fred">https://github.com/zachwill/fred</a> - suggests :</p>
<p dir="ltr">>>> import fred</p>
<p dir="ltr"># Save your FRED API key.<br>
>>> fred.key('my_fred_api_key')<br></p>
<p dir="ltr"># Interact with economic data categories.<br>
>>> fred.category()<br>
...</p>
<p dir="ltr">Cheers, <br>
Anish Tambe</p>
<div class="gmail_quote">On 26 Oct 2014 00:23, "Joel Goldstick" <<a href="mailto:joel.goldstick@gmail.com">joel.goldstick@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Oct 25, 2014 at 12:08 PM, Mark Meanwell <<a href="mailto:mmeanwell@gmail.com">mmeanwell@gmail.com</a>> wrote:<br>
> Hi Folks - new to python and trying to run an API. Running version 2.7.3. on<br>
> Windows 7 machine.<br>
><br>
>  Here is the scenario for the given API (FRED API in this case):<br>
><br>
> easy_install Fred from C:\ - this installs to C:\site packages<br>
><br>
> then I fire up the python shell and run file created for fred api:<br>
><br>
> from fredapi import Fred<br>
> fred = Fred(api_key='my api key')<br>
> data = fred.get_series('SP500')<br>
><br>
> keep getting below error message:<br>
> ImportError: cannot import name Fred<br>
><br>
> thanks for any suggestions!<br>
<br>
I'm not familiar with FRED, but a quick look on stackoverflow used the<br>
lowercase name to import<br>
<br>
><br>
><br>
> _______________________________________________<br>
> Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
> To unsubscribe or change subscription options:<br>
> <a href="https://mail.python.org/mailman/listinfo/tutor" target="_blank">https://mail.python.org/mailman/listinfo/tutor</a><br>
><br>
<br>
<br>
<br>
--<br>
Joel Goldstick<br>
<a href="http://joelgoldstick.com" target="_blank">http://joelgoldstick.com</a><br>
_______________________________________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://mail.python.org/mailman/listinfo/tutor" target="_blank">https://mail.python.org/mailman/listinfo/tutor</a><br>
</blockquote></div>