Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7730483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:14:08+00:00 2026-06-01T06:14:08+00:00

I have some basic questions of calling a Fortran model from GAE. I uploaded

  • 0

I have some basic questions of calling a Fortran model from GAE.

I uploaded a Fortran77 code to an test Environment, and then compiled it to a .so file using f2py commend. In the following steps, I will need to send input values which come from user inputs by filling a Django powered form on a GAE hosted website. What confused me is that:

  1. Since I have already uploaded the complied file to PiCloud, do I still need to publish the library (function?)? If so, how should I do it (import the uploaded library then publish)?

  2. How do I execute the function (do the calculation)? For a python function, I can use something like:

    “response_val = urlfetch.fetch(url=url_val, method=urlfetch.GET, headers=http_headers)
    output_val = json.loads(response_val.content)[‘result’]”

However, there is no “_env=environ_name” model in fetch, so any suggestion?

Thanks in advance and any suggestion is welcomed!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:14:09+00:00Added an answer on June 1, 2026 at 6:14 am

    Have you followed the procedure for publishing Python functions in PiCloud?

    It should go something like below (assuming that your module is in the Python path and can be imported without problem):

    >>> import cloud
    >>>
    >>> def my_func(x):
    >>>    import your_fortran_module
    >>>    return your_fortran_module.function(x)
    >>> 
    >>> cloud.setkey(api-key, api-secretkey)
    >>>
    >>> cloud.rest.publish(my_func, "label_of_my_func", _env="your_environment")
    "https://api.picloud.com/r/unique_user_id/label_of_my_func"
    

    As shown, cloud.rest.publish() will return a URL where you can send your requests or function calls using GAE’s urlfetch.

    An example for calling your published function through REST is given in the docs:

    import base64
    import json
    import urlfetch
    
    base64string = base64.encodestring('%s:%s' % (key, secret_ley))[:-1]
    http_headers = {'Authorization' : 'Basic %s' % base64string}
    
    response = urlfetch.fetch(url='https://api.picloud.com/servers/list/',
          payload={},  #POST DATA if method was urlfetch.POST
          method=urlfetch.GET,
          headers=http_headers)
    data = json.loads(response.content)    #{"servers": ["https://api.picloud.com/"]}
    

    Source: PiCloud REST docs: http://docs.picloud.com/rest.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to both GAE and PiCould, and have some basic questions when
I have some basic PHP code: $raceramps56[short] = My Test Product; $leftMenu = '<div
I have some basic questions around understanding fundamentals of Performance testing. I know that
I'm working through the Stanford iPhone podcasts and have some basic questions. The first:
Im new on Google Chrome Extensions coding, and i have some basic questions. I
I have some basic (stupid) questions about AWS EC2 instances or AMIs. I created
I have some fundamental points/questions about OpenGL, not all involving code but concepts as
I have some basic questions in eclipse plugin development, can anyone give clarification of
I have some basic questions related to the conversion of Web Service (.asmx) into
Till now I haven't really studied secure communication and I have some basic questions.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.